diff options
-rwxr-xr-x | Tools/portbuild/scripts/updatesnap | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/Tools/portbuild/scripts/updatesnap b/Tools/portbuild/scripts/updatesnap index 9615eee24421..577ec3e7905c 100755 --- a/Tools/portbuild/scripts/updatesnap +++ b/Tools/portbuild/scripts/updatesnap @@ -3,6 +3,10 @@ # Update the master source trees that are used by package builds # and other consumers +# head is handled specially +HEAD_BRANCH="9" +NON_HEAD_BRANCHES="6 7 8" + base=/a/snap zbase=a/snap @@ -31,32 +35,20 @@ umask 002 #cvsup -g /root/cvs-supfile || finish 1 -cd $base/src-HEAD +cd $base/src-${HEAD_BRANCH} fulldate=$(date) cvs -Rq -d ${srepo} update -PdA -D "${fulldate}" echo ${fulldate} > cvsdone snapdate=$(stamp ${fulldate}) -zfs snapshot ${zbase}/src-HEAD@${snapdate} - -cd $base/src-6 -fulldate=$(date) -cvs -Rq -d ${srepo} update -PdA -D "${fulldate}" -r RELENG_6 -echo ${fulldate} > cvsdone -snapdate=$(stamp ${fulldate}) -zfs snapshot ${zbase}/src-6@${snapdate} - -cd $base/src-7 -fulldate=$(date) -cvs -Rq -d ${srepo} update -PdA -D "${fulldate}" -r RELENG_7 -echo ${fulldate} > cvsdone -snapdate=$(stamp ${fulldate}) -zfs snapshot ${zbase}/src-7@${snapdate} - -cd $base/src-8 -fulldate=$(date) -cvs -Rq -d ${srepo} update -PdA -D "${fulldate}" -r RELENG_8 -echo ${fulldate} > cvsdone -snapdate=$(stamp ${fulldate}) -zfs snapshot ${zbase}/src-8@${snapdate} +zfs snapshot ${zbase}/src-${HEAD_BRANCH}@${snapdate} + +for branch in $NON_HEAD_BRANCHES; do + cd $base/src-${branch} + fulldate=$(date) + cvs -Rq -d ${srepo} update -PdA -D "${fulldate}" -r RELENG_${branch} + echo ${fulldate} > cvsdone + snapdate=$(stamp ${fulldate}) + zfs snapshot ${zbase}/src-${branch}@${snapdate} +done finish 0 |