summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-04-21 21:16:08 +0200
committerJustin Davis <jrcd83@gmail.com>2012-04-21 21:16:08 +0200
commitd9be53b226ca60c27e7f8ee7dda2005483bc2109 (patch)
tree06b0ffceda4756b4ad5f2eed9554341ce79b999e /bin
parent09263ccbe6a6d369c698c7fa9789e01b7253cafc (diff)
downloadgenpkg-d9be53b226ca60c27e7f8ee7dda2005483bc2109.tar.gz
genpkg-d9be53b226ca60c27e7f8ee7dda2005483bc2109.tar.xz
Rename METBIN var to PREPSPATH.
I meant to do this earlier. Oh well.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/genpkg2
-rwxr-xr-xbin/prepkg12
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/genpkg b/bin/genpkg
index f930879..28e85a7 100755
--- a/bin/genpkg
+++ b/bin/genpkg
@@ -91,7 +91,7 @@ do
mkdir PKGTREE
trap 'rm -f PKGDATA' 1 2 15
- if METABIN="$prepd" PKGVAR="$vard" prepkg "$pkg" > PKGDATA
+ if PREPSPATH="$prepd" PKGVAR="$vard" prepkg "$pkg" > PKGDATA
then
echo "$pkgd/$pkg"
else
diff --git a/bin/prepkg b/bin/prepkg
index 2296a28..513f4bb 100755
--- a/bin/prepkg
+++ b/bin/prepkg
@@ -1,6 +1,6 @@
#!/bin/sh
-prog=mkpkgmeta
+prog=prepkg
err()
{
@@ -39,19 +39,19 @@ case $# in
exit 1
esac
-case "$METABIN" in
-'') err "set METABIN before calling $prog"
+case "$PREPSPATH" in
+'') err "set PREPSPATH before calling $prog"
esac
tmp="/tmp/$prog.$$"
-for flav in "$METABIN"/*
+for flav in "$PREPSPATH"/*
do
pkgname="$1"
[ -f "$flav" -a -x "$flav" ] || continue
PATH="$PATH:$flav.d" "$flav" "$pkgname"
- metaret=$?
+ prepret=$?
- case "$metaret" in
+ case "$prepret" in
0) if prependmeta PKGDATA
then
exit 0