]> Zhao Yanbai Git Server - minix.git/commitdiff
Direct cvs export
authorBen Gras <ben@minix3.org>
Thu, 8 Sep 2005 17:04:35 +0000 (17:04 +0000)
committerBen Gras <ben@minix3.org>
Thu, 8 Sep 2005 17:04:35 +0000 (17:04 +0000)
tools/release.sh

index 276c9d0d7a5ebb9b4293a90d94fbd61fb8852414..e258eaf3e8b22494e1085af4ac0c2ca45be5220c 100755 (executable)
@@ -174,23 +174,23 @@ then
        if [ "$COPY" -ne 1 ]
        then
                echo " * Doing new cvs export"
-               rm -rf src
-               cvs export -rHEAD src >/dev/null || exit 1
-               srcdir=src
                if [ "$ALL" = 0 ]
                then
+                       cvs export -rHEAD src >/dev/null || exit 1
+                       srcdir=src
                        # No contrib stuff
                        rm -rf src/contrib
+                       echo " * Transfering source to $RELEASEDIR"
+                       ( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
+               else
+                       ( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src )
                fi
        else
                ( cd .. && make clean )
                srcdir=/usr/src
+               ( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
        fi
 
-       echo " * Transfering source to $RELEASEDIR"
-
-       ( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
-
        if [ "$ALL" = 0 ]
        then    echo " * Removing temporary cvs source tree"
                rm -rf src