summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpublish7
1 files changed, 6 insertions, 1 deletions
diff --git a/publish b/publish
index f901640..e49fb6a 100755
--- a/publish
+++ b/publish
@@ -75,6 +75,8 @@ OPTIONS:
-h Show this message.
-n no-do. Just print what would have been done.
-q Produce a QR code.
+ -r Add --relative option to rsync so that path names of the given
+ files are preserved at the remote host.
-x Publish the contents of the xclipboard.
EOF
}
@@ -114,7 +116,7 @@ do_screenshot=0
make_qrcode=0
add_default_cs=0
-while getopts "hnq8HSxs:" OPTION
+while getopts "rhnq8HSxs:" OPTION
do
case $OPTION in
h)
@@ -148,6 +150,9 @@ do
s)
name_stdin="$OPTARG"
;;
+ r)
+ rsync_args="${rsync_args} --relative"
+ ;;
*)
usage >&2
exit 1