]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
generate-version: Use day number instead of week number 23.356.9
authorRay Strode <rstrode@redhat.com>
Fri, 22 Dec 2023 16:29:12 +0000 (11:29 -0500)
committerRay Strode <rstrode@redhat.com>
Fri, 22 Dec 2023 16:29:12 +0000 (11:29 -0500)
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.

scripts/generate-version.sh

index c61cb54d0811e8da9551c078d1a2db076c441192..8ad6e2a3aff482c9d76d607b4c791aa329a7fa8e 100755 (executable)
@@ -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)"