]> Zhao Yanbai Git Server - minix.git/commitdiff
release.sh: jail building adjustments
authorBen Gras <ben@minix3.org>
Fri, 22 Jul 2011 20:10:21 +0000 (22:10 +0200)
committerBen Gras <ben@minix3.org>
Fri, 22 Jul 2011 20:10:21 +0000 (22:10 +0200)
tools/release.sh

index 4397b81f0dfd8aa2533bfd6713cd89c6c2b199b6..1865a40c85d797acc1d6a16911c1c0a2911cbb47 100755 (executable)
@@ -102,21 +102,7 @@ do
                SVNREV=-r$OPTARG
                ;;
        j)
-               FINAL_JAILDIR=$OPTARG
-
-               # Make sure no important directory will be wiped
-               if [ -d "$FINAL_JAILDIR" ]
-               then    echo "$FINAL_JAILDIR exists."
-                       exit 1
-               fi
-
-               # Sanity check name
-               if mkdir $FINAL_JAILDIR
-               then    :
-               else    echo "Could not create $FINAL_JAILDIR."
-                       exit 1
-               fi
-               rm -rf $FINAL_JAILDIR
+               RELEASEDIR=$OPTARG
                JAILMODE=1
                ;;
        u)
@@ -302,11 +288,9 @@ fi
 
 # If we are making a jail, all is done!
 if [ $JAILMODE = 1 ]
-then   rm -rf $FINAL_JAILDIR
-       mv $RELEASEDIR $FINAL_JAILDIR
-       echo "Created new minix install in $FINAL_JAILDIR."
+then   echo "Created new minix install in $RELEASEDIR."
        echo "Enter it by typing: "
-       echo "# chroot $FINAL_JAILDIR /bin/sh"
+       echo "# chroot $RELEASEDIR /bin/sh"
        exit 0
 fi