Changeset 1800
- Timestamp:
- 03/24/08 23:01:39
- Files:
-
- trunk/util/svncopy.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/util/svncopy.sh
r1696 r1800 4 4 5 5 usage() { 6 echo "This script will copy the trunk to a new location and adjust the"7 echo " svn:externals property to refer to the new copies"6 echo "This script will copy the trunk (or named location) to a new location and" 7 echo "adjust the svn:externals property to refer to the new copies" 8 8 echo " " 9 9 echo " $0 help" 10 echo " $0 (branch | tag | release) name comment-text "10 echo " $0 (branch | tag | release) name comment-text [ from (branch | tag | release) name]" 11 11 echo " " 12 12 echo " par 1: branch tag or release specifies what kind of copy" … … 75 75 # par 2 - destination 76 76 # par 3 - comment 77 # par 4 - source 77 78 # ------------------------------------------------------------------ 78 79 copyproject() { 79 echo "copyproject $1 $2 "80 echo "copyproject $1 $2 from $4" 80 81 if [ "${1}" != "bedework" ] 81 82 then 82 83 echo "projects/$1 $SVNREPOSITORY/$1/$2" >> $SCTEMPFILE 83 84 fi 84 svn copy -m "$3" -rHEAD $SVNREPOSITORY/$1/ trunk$SVNREPOSITORY/$1/$285 svn copy -m "$3" -rHEAD $SVNREPOSITORY/$1/$4 $SVNREPOSITORY/$1/$2 85 86 } 87 88 SOURCE="trunk" 89 90 if [ "${4}" = "from" ] 91 then 92 checkbranchtag "$5" 93 check "from-Name" "$6" 94 SOURCE=$BTR/$6 95 fi 86 96 87 97 checkbranchtag "$1" … … 123 133 for project in $PROJECTS 124 134 do 125 copyproject "$project" "$TARGET" "$COMMENT" 135 copyproject "$project" "$TARGET" "$COMMENT" "$SOURCE" 126 136 done 127 137
