generate-version: Use day number instead of week number

Right now the version is generated from week number but that
means more than one release in a week won't work.

This commit changes it to day number.
This commit is contained in:
Ray Strode 2023-12-22 11:29:12 -05:00
parent 897217ccc9
commit 93416bd5e6

View file

@ -21,4 +21,4 @@ fi
# If it is from a git checkout, derive the version from the date of the last commit, and the number
# of commits since the last release.
COMMITS_SINCE_LAST_RELEASE=$(git rev-list $(git describe --abbrev=0)..HEAD --count)
date +%y.%V.${COMMITS_SINCE_LAST_RELEASE} -d "@$(git log -1 --pretty=format:%ct)"
date +%y.%j.${COMMITS_SINCE_LAST_RELEASE} -d "@$(git log -1 --pretty=format:%ct)"