udpate testme to display correct version when run out of repository
This commit is contained in:
parent
dda83c9da1
commit
eb9bad79bf
@ -11,7 +11,12 @@ fi
|
||||
echo "date="`date`
|
||||
|
||||
# output version
|
||||
echo "Testing verion" `grep "^VERSION=" makefile | sed "s/.*=//"`
|
||||
version=$(git describe --tags --always --dirty 2>/dev/null)
|
||||
if [ ! -e ".git" ] || [ -z $version ]
|
||||
then
|
||||
version=$(grep "^VERSION=" makefile | sed "s/.*=//")
|
||||
fi
|
||||
echo "Testing version:" $version
|
||||
#grep "VERSION=" makefile | perl -e "@a = split('=', <>); print @a[1];"`
|
||||
|
||||
# get uname
|
||||
|
Loading…
Reference in New Issue
Block a user