From: Junio C Hamano Date: Thu, 27 Dec 2007 03:15:32 +0000 (-0800) Subject: Meta/Make: clean "version" file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=791c00b270e31cf44bc79a2aafc00385d0d3435e;p=thirdparty%2Fgit.git Meta/Make: clean "version" file --- diff --git a/Make b/Make index 3b9d9f2d1b..29483d2acf 100755 --- a/Make +++ b/Make @@ -64,7 +64,9 @@ do shift done -$GIT describe --abbrev=4 HEAD | sed -e 's/-/./g' >version +sh -c 'git describe --abbrev=4 HEAD' >/dev/null 2>&1 || { + $GIT describe --abbrev=4 HEAD | sed -e 's/-/./g' >version +} make $d \ GITWEB_CONFIG=$G \ @@ -72,3 +74,5 @@ make $d \ ETC_GITCONFIG=$d/etc/gitconfig \ CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \ "$@" + +rm -f version