From ad875198df0ad41a2f868cd73ba3d8f1b17ea622 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Fri, 5 Nov 2010 10:57:43 -0700 Subject: Be more paranoid when building packages. --- builddebs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/builddebs b/builddebs index cb6f597..be1340d 100755 --- a/builddebs +++ b/builddebs @@ -3,6 +3,15 @@ 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) " + read -n 1 PRECLEAN + echo + if [ "$PRECLEAN" == "y" ]; then git clean; else exit 1; fi +fi + for SOURCE in libpiny pinyadmin; do (cd "$SOURCE"; debuild -tc); done equivs-build -f piny.equiv -- cgit v1.2.3