summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSebastian Schmelzer2010-09-14 10:39:50 +0200
committerSebastian Schmelzer2010-09-14 10:39:50 +0200
commitd5355eeb8ab64428ffbc301bde8e2488041c422b (patch)
tree5627fceeefc16267fb3164de258d2855b6e57552 /tools
parentfirst steps to rpm pkg builder (diff)
downloadcore-d5355eeb8ab64428ffbc301bde8e2488041c422b.tar.gz
core-d5355eeb8ab64428ffbc301bde8e2488041c422b.tar.xz
core-d5355eeb8ab64428ffbc301bde8e2488041c422b.zip
fix non .git source install
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()