diff options
author | Sebastian Schmelzer | 2010-09-14 10:39:50 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-09-14 10:39:50 +0200 |
commit | d5355eeb8ab64428ffbc301bde8e2488041c422b (patch) | |
tree | 5627fceeefc16267fb3164de258d2855b6e57552 | |
parent | first steps to rpm pkg builder (diff) | |
download | core-d5355eeb8ab64428ffbc301bde8e2488041c422b.tar.gz core-d5355eeb8ab64428ffbc301bde8e2488041c422b.tar.xz core-d5355eeb8ab64428ffbc301bde8e2488041c422b.zip |
fix non .git source install
-rwxr-xr-x | tools/installer | 11 |
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() |