Meta/Make: clean "version" file
Junio C Hamano committed
Dec 26, 2007 at 19:15 UTC
791c00b270e31cf44bc79a2aafc00385d0d3435e
1 file changed
+5
-1
Make
+5
-1
@@ -64,7 +64,9 @@ do
64
shift
65
done
66
67
-$GIT describe --abbrev=4 HEAD | sed -e 's/-/./g' >version
67
+sh -c 'git describe --abbrev=4 HEAD' >/dev/null 2>&1 || {
68
+ $GIT describe --abbrev=4 HEAD | sed -e 's/-/./g' >version
69
+}
70
71
make $d \
72
GITWEB_CONFIG=$G \
@@ -72,3 +74,5 @@ make $d \
74
ETC_GITCONFIG=$d/etc/gitconfig \
75
CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
76
"$@"
77
+
78
+rm -f version