mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/41163 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
Avoid calling `git`
|
|
|
|
--- a/OpenRGB.pro
|
|
+++ b/OpenRGB.pro
|
|
@@ -28,10 +28,7 @@ MAJOR = 0
|
|
MINOR = 9
|
|
SUFFIX = git
|
|
|
|
-SHORTHASH = $$system("git rev-parse --short=7 HEAD")
|
|
LASTTAG = "release_"$$MAJOR"."$$MINOR
|
|
-COMMAND = "git rev-list --count "$$LASTTAG"..HEAD"
|
|
-COMMITS = $$system($$COMMAND)
|
|
|
|
VERSION_NUM = $$MAJOR"."$$MINOR"."$$COMMITS
|
|
VERSION_STR = $$MAJOR"."$$MINOR
|
|
@@ -73,15 +70,6 @@ win32:BUILDDATE = $$system(date /t)
|
|
linux:BUILDDATE = $$system(date -R -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}")
|
|
freebsd:BUILDDATE = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%s)}")
|
|
macx:BUILDDATE = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%s)}")
|
|
-GIT_COMMIT_ID = $$system(git log -n 1 --pretty=format:"%H")
|
|
-GIT_COMMIT_DATE = $$system(git log -n 1 --pretty=format:"%ci")
|
|
-
|
|
-unix {
|
|
- GIT_BRANCH = $$system(sh scripts/git-get-branch.sh)
|
|
-}
|
|
-else {
|
|
- GIT_BRANCH = $$system(powershell -ExecutionPolicy Bypass -File scripts/git-get-branch.ps1)
|
|
-}
|
|
|
|
message("GIT_BRANCH: "$$GIT_BRANCH)
|
|
DEFINES += \
|