]> pd.if.org Git - zpackage/commitdiff
add pkgname arg to newpackage
authorNathan Wagner <nw@hydaspes.if.org>
Tue, 10 Apr 2018 07:06:57 +0000 (02:06 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Tue, 10 Apr 2018 07:10:14 +0000 (02:10 -0500)
zpm-newpackage

index 31d1b9826ed1b1defa1b7bfb7f2c30d85924cae9..66044d942c2057f2ee34c1cbdc871b677cfbf9b7 100755 (executable)
@@ -5,9 +5,17 @@ pkgrel=${ZPMPKGREL:-1}
 
 builddate=$(date '+%s')
 
-while getopts :f:v:r:d:a:u:l:p:b:I opt; do
+# create a new package in: local, env, arg
+# arg, then env, then local
+
+# the repo given via ZPMDB
+# the repo implied by the arguments
+# the repo in /var/lib/zpm/local.db
+
+while getopts :f:v:r:d:a:u:l:p:b:In: opt; do
        case $opt in
                f) pkgfile="$OPTARG" ;;
+               n) pkgname="$OPTARG" ;;
                v) pkgver="$OPTARG" ;;
                r) pkgrel="$OPTARG" ;;
                d) description="$OPTARG" ;;