diff options
author | Ray Strode <rstrode@redhat.com> | 2023-12-22 11:29:12 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2023-12-22 11:29:12 -0500 |
commit | 93416bd5e6d1ccae5ffafd962f3c65e49e5e5413 (patch) | |
tree | 464c3d8757160308d77a6c08afc55639f3d721c5 | |
parent | 897217ccc9760b1aac26cf9aa2c3bbbe34fb7d3e (diff) |
generate-version: Use day number instead of week number23.356.9
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.
-rwxr-xr-x | scripts/generate-version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate-version.sh b/scripts/generate-version.sh index c61cb54d..8ad6e2a3 100755 --- a/scripts/generate-version.sh +++ b/scripts/generate-version.sh @@ -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)" |