summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/installer11
1 files changed, 8 insertions, 3 deletions
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()