Include commit hash if possible in versioning script, if a non-stable tree is compiled

This commit is contained in:
o9000 2017-11-26 18:28:25 +01:00
parent abdb1aeff9
commit abeb7ce2e6

View file

@ -42,7 +42,7 @@ then
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