Include also timestamp in version number for unstable builds, so that version numbers increase
This commit is contained in:
parent
abeb7ce2e6
commit
26251849c6
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ then
|
|||
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-next-g$HASH
|
||||
HASH=$(git log -n 1 --pretty=format:%cI.%ct.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g' 2>/dev/null)
|
||||
VERSION=$PREVIOUS-next-$HASH
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue