diff --git a/rc.sh b/rc.sh index 7ff02d1b055d2e768cd6fc60f328a680e7e2793d..ba5d9a47a74f89c28534577532517dffa2fa620d 100755 --- a/rc.sh +++ b/rc.sh @@ -37,8 +37,12 @@ fi # create the release branch repo=https://www.dev.java.net/svn/hudson RC=$repo/branches/rc +tag=$repo/tags/hudson-$(show-pom-version pom.xml | sed -e "s/-SNAPSHOT//g" -e "s/\\./_/g")-rc + svn rm -m "deleting the old RC branch" $RC -svn cp -m "creating a new RC branch" $repo/trunk/hudson/main $RC +rev=$(svn info --xml . | xmlstarlet sel -t -v /info/entry/@revision) +svn cp -m "tagging the branch point" $repo/trunk/hudson/main@$rev $tag +svn cp -m "creating a new RC branch" $repo/trunk/hudson/main@$rev $RC # update changelog.html WWW=../../www