diff options
author | Vladimir Kotal <Vladimir.Kotal@Sun.COM> | 2010-02-22 19:28:08 +0100 |
---|---|---|
committer | Vladimir Kotal <Vladimir.Kotal@Sun.COM> | 2010-02-22 19:28:08 +0100 |
commit | 9d3952ab10f8677fdabc8594d26cc1e7d6acdfc4 (patch) | |
tree | 0eb1a3b248a6db199e461658ccc04de776c410a5 /usr/src/tools/scripts/webrev.sh | |
parent | 69112edd987c28fa551d4f8d9362a84a45365f17 (diff) | |
download | illumos-joyent-9d3952ab10f8677fdabc8594d26cc1e7d6acdfc4.tar.gz |
6928402 add a section to webrev(1) about remote webrev deletion
6928313 webrev -Uo foo/ may upload to a destination one path element too high
6928394 webrev fails to create nested remote directories
Diffstat (limited to 'usr/src/tools/scripts/webrev.sh')
-rw-r--r-- | usr/src/tools/scripts/webrev.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/tools/scripts/webrev.sh b/usr/src/tools/scripts/webrev.sh index 9f4dba861b..eb0060963d 100644 --- a/usr/src/tools/scripts/webrev.sh +++ b/usr/src/tools/scripts/webrev.sh @@ -21,7 +21,7 @@ # # -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -215,6 +215,7 @@ function rsync_upload function remote_mkdirs { typeset -r dir_spec=$1 + typeset -r host_spec=$2 # # If the supplied path is absolute we assume all directories are @@ -304,7 +305,7 @@ function ssh_upload # Create remote directories. Any error reporting will be done # in remote_mkdirs function. # - remote_mkdirs ${dir_spec} + remote_mkdirs ${dir_spec} ${host_spec} if (( $? != 0 )); then return 1 fi @@ -2224,7 +2225,8 @@ do O) Oflag=1;; o) oflag=1 - WDIR=$OPTARG;; + # Strip the trailing slash to correctly form remote target. + WDIR=${OPTARG%/};; p) pflag=1 codemgr_parent=$OPTARG;; |