Changeset 1800

Show
Ignore:
Timestamp:
03/24/08 23:01:39
Author:
douglm
Message:

Allow specification of source for copy of repositories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/util/svncopy.sh

    r1696 r1800  
    44 
    55usage() { 
    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" 
    88  echo " " 
    99  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]
    1111  echo " " 
    1212  echo " par 1: branch tag or release specifies what kind of copy" 
     
    7575# par 2 - destination 
    7676# par 3 - comment 
     77# par 4 - source 
    7778# ------------------------------------------------------------------ 
    7879copyproject() { 
    79   echo "copyproject $1 $2
     80  echo "copyproject $1 $2 from $4
    8081  if [ "${1}" != "bedework" ] 
    8182  then 
    8283    echo "projects/$1 $SVNREPOSITORY/$1/$2" >> $SCTEMPFILE 
    8384  fi 
    84   svn copy -m "$3" -rHEAD $SVNREPOSITORY/$1/trunk $SVNREPOSITORY/$1/$2 
     85  svn copy -m "$3" -rHEAD $SVNREPOSITORY/$1/$4 $SVNREPOSITORY/$1/$2 
    8586} 
     87 
     88SOURCE="trunk" 
     89 
     90if [ "${4}" = "from" ] 
     91then 
     92  checkbranchtag "$5" 
     93  check "from-Name" "$6" 
     94  SOURCE=$BTR/$6 
     95fi 
    8696 
    8797checkbranchtag "$1" 
     
    123133for project in $PROJECTS 
    124134do 
    125    copyproject "$project" "$TARGET" "$COMMENT" 
     135   copyproject "$project" "$TARGET" "$COMMENT" "$SOURCE" 
    126136done 
    127137