summaryrefslogtreecommitdiff
path: root/builddebs
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-05 10:57:43 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-05 10:57:43 -0700
commitad875198df0ad41a2f868cd73ba3d8f1b17ea622 (patch)
tree5d529d376a73c9249aa4cc2629057b91c5838ecd /builddebs
parent43b296116fb11f1399a179e6629af6433b5c4d2a (diff)
downloadpiny-code-ad875198df0ad41a2f868cd73ba3d8f1b17ea622.tar.gz
piny-code-ad875198df0ad41a2f868cd73ba3d8f1b17ea622.zip
Be more paranoid when building packages.
Diffstat (limited to 'builddebs')
-rwxr-xr-xbuilddebs9
1 files changed, 9 insertions, 0 deletions
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