From 9d3952ab10f8677fdabc8594d26cc1e7d6acdfc4 Mon Sep 17 00:00:00 2001 From: Vladimir Kotal Date: Mon, 22 Feb 2010 19:28:08 +0100 Subject: 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 --- usr/src/tools/scripts/webrev.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr/src/tools/scripts/webrev.sh') 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;; -- cgit v1.2.3