summaryrefslogtreecommitdiff
path: root/builddebs
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@richardiv.omgwallhack.org>2010-12-27 01:23:57 -0800
committerJoe Rayhawk <jrayhawk@richardiv.omgwallhack.org>2010-12-27 01:23:57 -0800
commit875650426369fb2607b6179883141f3adfe42359 (patch)
tree20d614b74a4996b6e4e86155265b2c425266474e /builddebs
parent7bf6a597faf653358d83f6c8ca54843ffc43c782 (diff)
parent8f342b641236d9c15530664c00889d00635b61f6 (diff)
downloadpiny-code-875650426369fb2607b6179883141f3adfe42359.tar.gz
piny-code-875650426369fb2607b6179883141f3adfe42359.zip
Merge branch 'master' of piny.be:/srv/git/piny-code
Diffstat (limited to 'builddebs')
-rwxr-xr-xbuilddebs15
1 files changed, 11 insertions, 4 deletions
diff --git a/builddebs b/builddebs
index 287457d..c75c43d 100755
--- a/builddebs
+++ b/builddebs
@@ -4,14 +4,21 @@ set -e
set -o pipefail
if ls *.changes > /dev/null 2> /dev/null; then
+ echo
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 pinyweb pinyadmin pinyconfigs; do (cd "$SOURCE"; debuild $SIGNARGS -tc "$@"); done
echo
echo -n "Install packages on this machine? (y/N) "
@@ -29,4 +36,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