summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-04-16 01:15:55 +0200
committerJustin Davis <jrcd83@gmail.com>2012-04-16 01:17:04 +0200
commitbdd04c88ba2bad905134a835dc794d273bd7bf97 (patch)
tree23dcb0246d1f8403d6516d32cb38cd297b66423f /bin
parent690e3e9a39e2691b483474725ee1a17d44231401 (diff)
downloadgenpkg-bdd04c88ba2bad905134a835dc794d273bd7bf97.tar.gz
genpkg-bdd04c88ba2bad905134a835dc794d273bd7bf97.tar.xz
Rename tweaks/ to preps/.
Adds GENPKGDBG env variable. Set it to prevent genpkg from removing PKGTREE and PKGDATA.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/genpkg7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/genpkg b/bin/genpkg
index ee8abd3..01642c2 100755
--- a/bin/genpkg
+++ b/bin/genpkg
@@ -94,6 +94,11 @@ do
# echo "Modified metapackage." 1>&2
#fi
- pbfields < PKGDATA | putpkgtree PKGBUILD prefix body || exit "$?"
+ cat PKGDATA | injectdigs | pbfields | putpkgtree PKGBUILD prefix body || exit "$?"
mergefile PKGBUILD prefix build check package suffix || exit "$?"
+
+ if ! [ "$GENPKGDBG" ] then
+ rm -rf PKGTREE
+ rm PKGDATA
+ fi
done