Include commit hash if possible in versioning script, if a non-stable tree is compiled
o9000 mrovi9000@gmail.com
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
get_version.sh
→
get_version.sh
@@ -42,7 +42,7 @@ if [ "$VERSION" = "master" ]
then PREVIOUS=$(grep '^2' "${SCRIPT_DIR}/ChangeLog" | head -n 2 | tail -n 1 | cut -d ' ' -f 2) HASH=$(git log -n 1 --pretty=format:"%h" 2>/dev/null) - VERSION=$PREVIOUS-$HASH + VERSION=$PREVIOUS-next-g$HASH fi fi fi