From: Ray Strode Date: Fri, 22 Dec 2023 16:29:12 +0000 (-0500) Subject: generate-version: Use day number instead of week number X-Git-Tag: 23.356.9^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93416bd5e6d1ccae5ffafd962f3c65e49e5e5413;p=thirdparty%2Fplymouth.git 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. --- 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)"