diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-10-13 15:24:41 +0100 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-10-13 15:24:41 +0100 |
| commit | ec07d3d4d9ec2245f0b23edf6746f4ae1e5dfce4 (patch) | |
| tree | 36398767aee155f703c255511bbe0e6b8c7919c4 /src/organizer.pro | |
| parent | 939993aefe4b0e2928835d2594713e96383c38ce (diff) | |
Updated scons build a bit to produce helpful-ish git tag for organizer.
Use r"..." strings in template file to make it easier to copy/paste paths from windows clipboard.
Changed organizer.pro to not produce strange messages if you opened it because it couldn't find a .hg directory
Diffstat (limited to 'src/organizer.pro')
| -rw-r--r-- | src/organizer.pro | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/organizer.pro b/src/organizer.pro index 5b2c56b1..261e3c1c 100644 --- a/src/organizer.pro +++ b/src/organizer.pro @@ -310,7 +310,9 @@ DEFINES += UNICODE _UNICODE _CRT_SECURE_NO_WARNINGS _SCL_SECURE_NO_WARNINGS NOMI DEFINES += BOOST_DISABLE_ASSERTS NDEBUG QT_MESSAGELOGCONTEXT
#DEFINES += QMLJSDEBUGGER
-HGID = 'nothing'
+# If we are running mercurial get the build ID from that. If we aren't, at least
+# don't generate a strange message whenever you open the project
+HGID = $$system(if exist $OUT_PWD\\..\\.hg (hg id -i) else (echo 'Unknown'))
DEFINES += HGID=\\\"$${HGID}\\\"
CONFIG(debug, debug|release) {
|
