diff options
author | Vaxry <[email protected]> | 2024-04-05 00:44:21 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-05 00:46:37 +0100 |
commit | 1ae592fcd94b86c4fee6b91786dfdc78724930fe (patch) | |
tree | 40b566cbcf0aa1c92f28c9ab4ff8e91b5639a8ba /scripts | |
parent | 51b3148f097f7cd371622aff5c144ca6ccbeda92 (diff) | |
download | Hyprland-1ae592fcd94b86c4fee6b91786dfdc78724930fe.tar.gz Hyprland-1ae592fcd94b86c4fee6b91786dfdc78724930fe.zip |
hyprpm: add support for minimum versions
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generateVersion.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generateVersion.sh b/scripts/generateVersion.sh index 443c5c54..b0993709 100755 --- a/scripts/generateVersion.sh +++ b/scripts/generateVersion.sh @@ -7,6 +7,7 @@ MESSAGE=$(git show ${GIT_COMMIT_HASH} | head -n 5 | tail -n 1 | sed -e 's/#//g' DATE=$(git show ${GIT_COMMIT_HASH} --no-patch --format=%cd --date=local) DIRTY=$(git diff-index --quiet HEAD -- || echo dirty) TAG=$(git describe --tags) +COMMITS=$(git rev-list --count HEAD) sed -i -e "s#@HASH@#${HASH}#" ./src/version.h sed -i -e "s#@BRANCH@#${BRANCH}#" ./src/version.h @@ -14,3 +15,4 @@ sed -i -e "s#@MESSAGE@#${MESSAGE}#" ./src/version.h sed -i -e "s#@DATE@#${DATE}#" ./src/version.h sed -i -e "s#@DIRTY@#${DIRTY}#" ./src/version.h sed -i -e "s#@TAG@#${TAG}#" ./src/version.h +sed -i -e "s#@COMMITS@#${COMMITS}#" ./src/version.h |