summaryrefslogtreecommitdiff
path: root/TINDERBOX
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-09-11 15:45:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-09-11 15:49:21 +1000
commitc0d96b6ec6c8a8c80227b5a88e2d25c8fb71cb6c (patch)
tree9ba79f4618394b1ad26a16ac75f5ad9a760609ff /TINDERBOX
parentbe2e11df501838f521727484f9b5a2514ca1b247 (diff)
TINDERBOX: if built.modules doesn't exist, assume it's a first run (WIPE)
Also silence the script if built.modules doesn't exist and give the user 5 seconds to cancel. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'TINDERBOX')
-rwxr-xr-xTINDERBOX13
1 files changed, 10 insertions, 3 deletions
diff --git a/TINDERBOX b/TINDERBOX
index 4ffd342..4e4e66b 100755
--- a/TINDERBOX
+++ b/TINDERBOX
@@ -56,13 +56,20 @@ if ! test -d $XORG/util/modular; then
git clone git://anongit.freedesktop.org/git/xorg/util/modular $XORG/util/modular
fi
+if ! test -e $XORG/built.modules; then
+ WIPE=1
+fi
+
if test -z "$WIPE"; then
CONTCMD="-r `tail -n 1 $XORG/built.modules`"
else
- echo -n "Wiping $PREFIX..."
+ echo -n "Wiping $PREFIX... (5 seconds to cancel)"
+ sleep 5
rm -rf "$PREFIX/*"
- rm $XORG/built.modules
- echo "done."
+ if test -e $XORG/built.modules; then
+ rm $XORG/built.modules
+ fi
+ echo "... done"
fi
git config --global user.email > /dev/null