added helper script for deb package's git hash

This commit is contained in:
itsmattkc
2019-02-15 19:51:33 -08:00
parent 09644b70b4
commit c477e0dd80
3 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ system("which git") {
# Fallback for Ubuntu/Launchpad (extracts Git hash from debian/changelog rather than Git repo)
# (see https://answers.launchpad.net/launchpad/+question/678556)
isEmpty(GITHASHVAR) {
GITHASHVAR = $$system(grep -Po '(?<=-)(([a-z0-9])\w+)(?=\+)' debian/changelog)
GITHASHVAR = $$system(sh $$PWD/debian/gitfromlog.sh $$PWD/debian/changelog)
}
DEFINES += GITHASH=\\"\"$$GITHASHVAR\\"\"