Define VERSION_MAJOR and use it in handshake

This commit is contained in:
angt
2015-12-29 18:31:23 +01:00
parent ec85be5c6a
commit ba0af8cc20
3 changed files with 7 additions and 2 deletions

View File

@@ -6,4 +6,6 @@
[ -z "${VERSION}" ] && VERSION=`basename \`pwd\`` \
&& VERSION=${VERSION#*-}
[ "$1" = "major" ] && VERSION=${VERSION%%.*}
printf ${VERSION}