|
@@ -29,6 +29,9 @@ elif [ -d .git ]; then
|
|
|
# Check if we are on a dirty checkout.
|
|
|
git update-index --refresh -q >/dev/null
|
|
|
dirty=$(git diff-index --name-only HEAD 2>/dev/null)
|
|
|
+ if [ -z $version ]; then
|
|
|
+ version="1.18.23"
|
|
|
+ fi
|
|
|
if [ -n "$dirty" ]; then
|
|
|
version="$version-dirty"
|
|
|
fi
|
|
@@ -36,6 +39,5 @@ else
|
|
|
echo "error: cannot get project version." 1>&2
|
|
|
exit 1
|
|
|
fi
|
|
|
-
|
|
|
# Use printf to avoid the trailing new line that m4_esyscmd would not handle.
|
|
|
printf "$version"
|