Add SNAPTSHOT=CURRENT to build with the commit # in the version string
This commit is contained in:
parent
21dd9b527d
commit
bf69e053b4
|
@ -120,6 +120,10 @@ else
|
||||||
fi;
|
fi;
|
||||||
if [ "$SNAPSHOT" == "NOW" ]; then
|
if [ "$SNAPSHOT" == "NOW" ]; then
|
||||||
SNAPSHOT=`date +%Y%m%d%H%M%S`;
|
SNAPSHOT=`date +%Y%m%d%H%M%S`;
|
||||||
|
else
|
||||||
|
if [ "$SNAPSHOT" == "CURRENT" ]; then
|
||||||
|
SNAPSHOT="`date +%Y%m%d.`$(git rev-list ${versionhash}..HEAD --count)"
|
||||||
|
fi;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue