]> Zhao Yanbai Git Server - minix.git/commitdiff
release.sh: fix -l, add -L option for local packages
authorBen Gras <ben@minix3.org>
Wed, 3 Aug 2011 10:53:01 +0000 (12:53 +0200)
committerBen Gras <ben@minix3.org>
Wed, 3 Aug 2011 10:53:01 +0000 (12:53 +0200)
. by Jan Wieck

tools/release.sh

index 1865a40c85d797acc1d6a16911c1c0a2911cbb47..7301c2aa16ee22da7ffd10e32846c7361b544d30 100755 (executable)
@@ -79,11 +79,11 @@ fi
 
 FILENAMEOUT=""
 
-while getopts "j:ls:pmMchu?r:f:" c
+while getopts "j:ls:pmMchu?r:f:L:" c
 do
        case "$c" in
        \?)
-               echo "Usage: $0 [-l] [-p] [-c] [-h] [-m] [-M] [-r <tag>] [-u] [-f <filename>] [-s <username>] -j<jaildir>" >&2
+               echo "Usage: $0 [-l] [-p] [-c] [-h] [-m] [-M] [-r <tag>] [-u] [-f <filename>] [-s <username>] -j<jaildir> [-L <packageurl>]" >&2
                exit 1
        ;;
        h)
@@ -121,7 +121,9 @@ do
                ;;
        M)      MAKEMAP=1
                ;;
-       l)      PKG_ADD_URL=file://$PACKAGEDIR
+       l)      PKG_ADD_URL=file://$PACKAGEDIR/All
+               ;;
+       L)      PACKAGEURL="$OPTARG"
                ;;
        esac
 done