]> Zhao Yanbai Git Server - minix.git/commitdiff
if from branch, include branch name in in-image tag and .iso filename.
authorBen Gras <ben@minix3.org>
Mon, 19 Oct 2009 15:46:27 +0000 (15:46 +0000)
committerBen Gras <ben@minix3.org>
Mon, 19 Oct 2009 15:46:27 +0000 (15:46 +0000)
tools/release.sh

index d965d05df946f7b9be9264705654bad3a583fbe4..bb614cf978806a9f712d972741c196f9ce126c6e 100755 (executable)
@@ -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