From: Nathan Wagner Date: Tue, 10 Apr 2018 07:06:57 +0000 (-0500) Subject: add pkgname arg to newpackage X-Git-Tag: v0.1.6~108 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=f946d9f84d0a3747c5d9d573407f3858f42e777b add pkgname arg to newpackage --- diff --git a/zpm-newpackage b/zpm-newpackage index 31d1b98..66044d9 100755 --- a/zpm-newpackage +++ b/zpm-newpackage @@ -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" ;;