]> Zhao Yanbai Git Server - minix.git/commitdiff
release: by default leave src/.git
authorBen Gras <ben@minix3.org>
Thu, 6 Oct 2011 19:10:49 +0000 (19:10 +0000)
committerBen Gras <ben@minix3.org>
Fri, 7 Oct 2011 13:56:55 +0000 (13:56 +0000)
. facilitates easy updates of installs
. removal can be restored with release.sh -m

tools/release.sh

index 74905cd592c389359a0510c8b78531cc9204ea06..c01b5eed7fc80ce84535a17c2583860227ea7627 100755 (executable)
@@ -205,7 +205,9 @@ then
        else    REVTAG=`(cd $srcdir && git show-ref HEAD -s10)`
                echo "Retrieved repository head is $REVTAG."
        fi
-       rm -r $srcdir/.git
+       if [ $MINIMAL -ne 0 ]
+       then    rm -r $srcdir/.git
+       fi
        echo "
 /* Added by release script  */
 #ifndef _VCS_REVISION