llvm.org GIT mirror llvm / bdcfb76
Add a flag to rebranch if we need to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155049 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1515
1616 release=""
1717 rc=""
18 rebranch="no"
1819
1920 base_url="https://llvm.org/svn/llvm-project"
2021
2122 function usage() {
22 echo "usage: `basename $0` -release "
23 echo "usage: `basename $0` -release [-rebranch]"
2324 echo "usage: `basename $0` -release -rc "
2425 echo " "
2526 echo " -release The version number of the release"
2627 echo " -rc The release candidate number"
28 echo " -rebranch Remove existing branch, if present, before branching"
2729 echo " -final Tag final release candidate"
2830 }
2931
3032 function tag_version() {
3133 set -x
3234 for proj in llvm cfe dragonegg test-suite compiler-rt ; do
33 if ! svn ls $base_url/$proj/branches/release_$release > /dev/null 2>&1 ; then
34 svn copy -m "Creating release_$release branch" \
35 $base_url/$proj/trunk \
35 if svn ls $base_url/$proj/branches/release_$release > /dev/null 2>&1 ; then
36 if [ $rebranch = "no" ]; then
37 continue
38 fi
39 svn remove -m "Removing old release_$release branch for rebranching." \
3640 $base_url/$proj/branches/release_$release
3741 fi
42 svn copy -m "Creating release_$release branch" \
43 $base_url/$proj/trunk \
44 $base_url/$proj/branches/release_$release
3845 done
3946 set +x
4047 }
6370 -rc | --rc )
6471 shift
6572 rc="rc$1"
73 ;;
74 -rebranch | --rebranch )
75 rebranch="yes"
6676 ;;
6777 -final | --final )
6878 rc="final"