From d5355eeb8ab64428ffbc301bde8e2488041c422b Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Tue, 14 Sep 2010 10:39:50 +0200 Subject: fix non .git source install --- tools/installer | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/installer b/tools/installer index c2327f3b..a4c5c81a 100755 --- a/tools/installer +++ b/tools/installer @@ -23,9 +23,14 @@ PREPARE_INSTALL_TARGET="./_install/" # helper functions: git_version() { - GITVERSION=`git describe` - GITMODIFIED=`(git status | grep "modified:\|added:\|deleted:" -q) && echo "-M"` - echo $GITVERSION$GITMODIFIED + if [ $(git status) ]; then + GITVERSION=`git describe` + GITMODIFIED=`(git status | grep "modified:\|added:\|deleted:" -q) && echo "-M"` + echo $GITVERSION$GITMODIFIED + echo $GITVERSION > VERSION + else + cat VERSION + fi } check_perl() -- cgit v1.2.3-55-g7522