summaryrefslogtreecommitdiff
path: root/version.pri
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-14 16:37:34 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-14 16:37:34 (GMT)
commit2217eff627443bcedb14441c9ae58fb62a4b52d5 (patch)
treebc129ba9ff93b595747be23ce1e236453bd2d78e /version.pri
parent0e9274a1daddc5cfd1fd095eea3cc9ff8732d325 (diff)
Added OPENSCAD_COMMIT define to show which git commit a binary actually is built from in the about box. Pass -c to release_common.sh to turn this on. Please use this for development builds, see publish-macosx.sh for how development vs. release is handled
Diffstat (limited to 'version.pri')
-rw-r--r--version.pri4
1 files changed, 4 insertions, 0 deletions
diff --git a/version.pri b/version.pri
index 6b91ecd..e490d7d 100644
--- a/version.pri
+++ b/version.pri
@@ -66,3 +66,7 @@ VERSION_DAY=$${VERSION_DAY}.0
DEFINES += OPENSCAD_VERSION=$$VERSION OPENSCAD_YEAR=$$VERSION_YEAR OPENSCAD_MONTH=$$VERSION_MONTH
!isEmpty(VERSION_DAY): DEFINES += OPENSCAD_DAY=$$VERSION_DAY
+
+!isEmpty(OPENSCAD_COMMIT) {
+ DEFINES += OPENSCAD_COMMIT=$$OPENSCAD_COMMIT
+}
contact: Jan Huwald // Impressum