package=${1:-$ZPMPACKAGE}
shift
-pkgver=${ZPMPACKAGEVER:-1.0}
-pkgrel=${ZPMPACKAGEREL:-1}
+pkgver=${ZPMPKGVER:-1.0}
+pkgrel=${ZPMPKGREL:-1}
# option for "multipackage" just to let the system know that's what you meant
# option to take filenames from stdin
fi
if [ ! -f $pkgfile ]; then
- ./zpm-newpackage $package || exit 1
+ zpm newpackage $package || exit 1
else
appid=$(sqlite3 $pkgfile 'pragma application_id;' | ( echo obase = 16; cat - ) | bc)
if [ "$appid" != "5A504442" ]; then
if [ -f "$path" ]; then
- hash=$(./zpm-addfile $pkgfile $path)
+ hash=$(zpm addfile $pkgfile $path)
#if [ -z "$hash" ]; then continue; fi
#!/bin/sh
package=${1:-$ZPMPACKAGE}
-pkgver=${ZPMPACKAGEVER:-1.0}
-pkgrel=${ZPMPACKAGEREL:-1}
+pkgver=${ZPMPKGVER:-1.0}
+pkgrel=${ZPMPKGREL:-1}
builddate=$(date '+%s')
esac
done
-set -e
-
if [ -z "$pkgfile" ]; then
pkgfile="$package-$pkgver-$pkgrel.zpm"
fi
+set -e
+
if [ ! -e $pkgfile ]; then
- sqlite3 $pkgfile < db.sql
+ zpm init $pkgfile
fi
sqlite3 $pkgfile <<EOS