diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-14 16:37:34 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-14 16:37:34 (GMT) |
commit | 2217eff627443bcedb14441c9ae58fb62a4b52d5 (patch) | |
tree | bc129ba9ff93b595747be23ce1e236453bd2d78e /src | |
parent | 0e9274a1daddc5cfd1fd095eea3cc9ff8732d325 (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 'src')
-rw-r--r-- | src/mainwin.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index a8507c0..cbfa46a 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -101,7 +101,11 @@ unsigned int GuiLocker::gui_locked = 0; #define QUOTED(x__) QUOTE(x__) static char helptitle[] = - "OpenSCAD " QUOTED(OPENSCAD_VERSION) " (www.openscad.org)\n\n"; + "OpenSCAD " QUOTED(OPENSCAD_VERSION) +#ifdef OPENSCAD_COMMIT + " (git " QUOTED(OPENSCAD_COMMIT) ")" +#endif + "\nhttp://www.openscad.org\n\n"; static char copyrighttext[] = "Copyright (C) 2009-2011 Marius Kintel <marius@kintel.net> and Clifford Wolf <clifford@clifford.at>\n" "\n" |