projects
/
ngircd-alex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd3fb8
)
platformtest.sh: Clean up GIT source tree, when possible
author
Alexander Barton
<alex@barton.de>
Mon, 14 Oct 2013 21:47:07 +0000
(23:47 +0200)
committer
Alexander Barton
<alex@barton.de>
Mon, 14 Oct 2013 21:47:16 +0000
(23:47 +0200)
contrib/platformtest.sh
patch
|
blob
|
history
diff --git
a/contrib/platformtest.sh
b/contrib/platformtest.sh
index 765fb3964cfd5c19d2ac7e1ec7fd288334e6e56a..ac545757ffca9e44749477f56d64a6382a7637ee 100755
(executable)
--- a/
contrib/platformtest.sh
+++ b/
contrib/platformtest.sh
@@
-54,6
+54,16
@@
if [ $? -ne 0 ]; then
cd ..
fi
+echo "$NAME: Checking for GIT tree ..."
+if [ -d .git ]; then
+ echo "$NAME: Checking for \"git\" command ..."
+ git version >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ echo "$NAME: Running \"git clean\" ..."
+ [ -n "$VERBOSE" ] && git clean -dxf || git clean -dxf >/dev/null
+ fi
+fi
+
echo "$NAME: Checking for \"./configure\" script ..."
if [ ! -e ./configure ]; then
echo "$NAME: Running \"./autogen.sh\" ..."