X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-newpackage;h=66044d942c2057f2ee34c1cbdc871b677cfbf9b7;hb=f946d9f84d0a3747c5d9d573407f3858f42e777b;hp=8cce97db78f323dbb7ead66849cee583d7808e6b;hpb=e5739c4df416952fbe5064436c44c172eb770aa6;p=zpackage diff --git a/zpm-newpackage b/zpm-newpackage index 8cce97d..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" ;; @@ -22,7 +30,7 @@ done shift $(( OPTIND - 1)) die() { - echo $* 1&>2 + echo $* 1>&2 exit 1 } @@ -47,7 +55,7 @@ if [ "$idempotent" = 1 ]; then idempotent='or ignore' fi -sqlite3 $pkgfile <