Skip to content

Commit 462b064

Browse files
author
pd
committed
Update Devel number in VERSION-INFO at branch time
git-svn-id: https://svn.r-project.org/R-dev-web/trunk@3648 c52295ea-58df-0310-926a-d16021944841
1 parent ec0e866 commit 462b064

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

R-create-branch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# The following variable will need customizing if the build environment
1414
# is changed
1515
LOCALDIR=$HOME
16+
RELDIR=$HOME/R-release/
17+
CRANDIR=cran.r-project.org:/srv/ftp/pub/R/src/base
1618
#
1719
#--- no changes should be necessary below this line
1820
IFS=. read major minor << EOF
@@ -40,3 +42,13 @@ svn up || exit 1
4042
echo "$NEXT Under development (unstable)" > VERSION
4143
aclocal -I m4 --force && autoconf --force
4244
svn commit -m "go to $NEXT devel"
45+
VERSIONINFO=$RELDIR/VERSION-INFO.dcf
46+
Rscript - << EOF
47+
x <- read.dcf("$VERSIONINFO")
48+
x[, "Devel"] <- "$NEXT"
49+
write.dcf(x, file="$VERSIONINFO")
50+
EOF
51+
#
52+
# Rsync step: Don't delete anything at destination
53+
#
54+
rsync -aOvuz --no-p $RELDIR/ $CRANDIR

0 commit comments

Comments
 (0)