From: Ben Gras Date: Mon, 19 Oct 2009 15:46:27 +0000 (+0000) Subject: if from branch, include branch name in in-image tag and .iso filename. X-Git-Tag: v3.1.5~8 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=97ae67e780d51bad2f46a107b24473142718b556;p=minix.git if from branch, include branch name in in-image tag and .iso filename. --- diff --git a/tools/release.sh b/tools/release.sh index d965d05df..bb614cf97 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -270,16 +270,22 @@ chmod -R u+w $RELEASEDIR/usr/lib if [ "$COPY" -ne 1 ] then echo " * Doing new svn export" - REPO=$TRUNK/$SRC + TOOLSREPO="`svn info | grep '^URL: ' | awk '{ print $2 }'`" + REPO="`echo $TOOLSREPO | sed 's/.tools$//'`" + BRANCHNAME="`echo $REPO | awk -F/ '{ print $NF }'`" REVISION="`svn info $USERNAME $SVNREV $REPO | grep '^Revision: ' | awk '{ print $2 }'`" echo "Doing export of revision $REVISION from $REPO." - ( cd $RELEASEDIR/usr && svn $USERNAME export -r$REVISION $REPO ) - REVTAG=r$REVISION + ( cd $RELEASEDIR/usr && svn -q $USERNAME export -r$REVISION $REPO $SRC ) + if [ $BRANCHNAME = src ] + then REVTAG=r$REVISION + else REVTAG=branch-$BRANCHNAME-r$REVISION + fi + echo " /* Added by release script */ #ifndef _SVN_REVISION -#define _SVN_REVISION \"$REVISION\" +#define _SVN_REVISION \"$REVTAG\" #endif" >>$RELEASEDIR/usr/src/include/minix/sys_config.h else