Skip to content
Snippets Groups Projects
Commit a48f47b6 authored by Raymond Toy's avatar Raymond Toy
Browse files

Oops. expr should not have a "^" character in the regexp. (Sparc

complains about this.)
parent 6633ddde
No related branches found
No related tags found
No related merge requests found
...@@ -16,11 +16,11 @@ GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`" ...@@ -16,11 +16,11 @@ GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
# If the git hash looks like a snapshot tag or release, don't add the date. # If the git hash looks like a snapshot tag or release, don't add the date.
VERSION="`date '+%Y-%m-%d %H:%M:%S'`${GIT_HASH:+ $GIT_HASH}" VERSION="`date '+%Y-%m-%d %H:%M:%S'`${GIT_HASH:+ $GIT_HASH}"
if expr "X${GIT_HASH}" : '^Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
VERSION="${GIT_HASH}" VERSION="${GIT_HASH}"
fi fi
if expr "X${GIT_HASH}" : '^X[0-9][0-9][a-f]' > /dev/null; then if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
VERSION="${GIT_HASH}" VERSION="${GIT_HASH}"
fi fi
echo $VERSION echo $VERSION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment