Include commit hash if possible in versioning script, if a non-stable tree is compiled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user