From: Sebastian Harl Date: Sun, 2 May 2010 21:38:18 +0000 (+0200) Subject: version-gen.sh: Prepend a dot to VERSION_EXTRA. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b966262b45e09a705d3e27be50af4d8a143c640e;p=template.git version-gen.sh: Prepend a dot to VERSION_EXTRA. --- diff --git a/version-gen.sh b/version-gen.sh index 5730071..b9d8c96 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -27,6 +27,7 @@ if test "$OLD_VERSION" != "$VERSION"; then VERSION_MINOR=$( echo $VERSION | cut -d'.' -f2 ) VERSION_PATCH=$( echo $VERSION | cut -d'.' -f3 ) VERSION_EXTRA="\"$( echo $VERSION | cut -d'.' -f4- )\"" + test -z "$VERSION_EXTRA" || VERSION_EXTRA=".$VERSION_EXTRA" ( echo "VERSION=\"$VERSION\"" echo "VERSION_MAJOR=$VERSION_MAJOR"