summaryrefslogtreecommitdiff
path: root/builddebs
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2010-12-20 21:42:14 -0800
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2010-12-20 21:42:14 -0800
commit10f282b3a4930a84cdca247e4bb771f428bd778e (patch)
tree325132c8e1753af11139fab71b44230871b587a2 /builddebs
parent042c335bbdc0d775fdc09b56e7490c6cb9985929 (diff)
downloadpiny-code-10f282b3a4930a84cdca247e4bb771f428bd778e.tar.gz
piny-code-10f282b3a4930a84cdca247e4bb771f428bd778e.zip
Make builddebs usable by people other than Jules
Diffstat (limited to 'builddebs')
-rwxr-xr-xbuilddebs14
1 files changed, 10 insertions, 4 deletions
diff --git a/builddebs b/builddebs
index 287457d..d06c554 100755
--- a/builddebs
+++ b/builddebs
@@ -5,13 +5,19 @@ set -o pipefail
if ls *.changes > /dev/null 2> /dev/null; then
echo ".changes files already exist!"
- echo "Clean repo before building? (y/N) "
+ echo -n "Clean repo before building? (y/N) "
read -n 1 PRECLEAN
echo
- if [ "$PRECLEAN" == "y" ]; then git clean; else exit 1; fi
+ if [ "$PRECLEAN" == "y" ]; then git clean -f; else exit 1; fi
fi
-for SOURCE in libpiny piny pinyadmin pinyconfigs; do (cd "$SOURCE"; debuild -tc "$@"); done
+echo
+echo -n "Sign built packages? (y/N) "
+read -n 1 SIGN
+echo
+if [ "$SIGN" == "y" ]; then SIGNARGS=""; else SIGNARGS="-uc -us"; fi
+
+for SOURCE in libpiny piny pinyadmin pinyconfigs; do (cd "$SOURCE"; debuild $SIGNARGS -tc "$@"); done
echo
echo -n "Install packages on this machine? (y/N) "
@@ -29,4 +35,4 @@ echo
echo -n "Clean repo? (y/N) "
read -n 1 CLEAN
echo
-if [ "$CLEAN" == "y" ]; then git clean; fi
+if [ "$CLEAN" == "y" ]; then git clean -f; fi