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
+3 -7
View File
@@ -1,9 +1,5 @@
olive-editor (18.11.13bionic1-1) bionic; urgency=low
olive-editor (201902160026-0ac9dd9+805~ubuntu19.04.1) disco; urgency=low
* Initial Release
* Included missing dep
* Included another missing dep
* Updated source to dd55b97
* Updated source to 6a38cd0
* Auto build.
-- Olive Team <itsmattkc@gmail.com> Fri, 13 Nov 2018 10:04:05 +1100
-- Launchpad Package Builder <noreply@launchpad.net> Sat, 16 Feb 2019 00:26:45 +0000
+3
View File
@@ -0,0 +1,3 @@
# A simple script to extract the Git hash from an auto-generated debian/changelog
grep -Po '(?<=-)(([a-z0-9])\w+)(?=\+)' $1
+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\\"\"