Try not to say 'git release' on versions built from non-git checkouts.
authorCarl Hetherington <cth@carlh.net>
Fri, 21 Dec 2012 22:16:34 +0000 (22:16 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 21 Dec 2012 22:16:34 +0000 (22:16 +0000)
src/tools/dvdomatic.cc

index 59f3ebc3e05212557a333a730dfcf2f3a04aec3f..9d0d586628ace4edd7317acfc5abc16cf200814c 100644 (file)
@@ -350,7 +350,11 @@ public:
        {
                wxAboutDialogInfo info;
                info.SetName (_("DVD-o-matic"));
-               info.SetVersion (std_to_wx (String::compose ("version %1 git %2", dvdomatic_version, dvdomatic_git_commit)));
+               if (strcmp (dvdomatic_git_commit, "release") == 0) {
+                       info.SetVersion (std_to_wx (String::compose ("version %1", dvdomatic_version)));
+               } else {
+                       info.SetVersion (std_to_wx (String::compose ("version %1 git %2", dvdomatic_version, dvdomatic_git_commit)));
+               }
                info.SetDescription (_("Free, open-source DCP generation from almost anything."));
                info.SetCopyright (_("(C) Carl Hetherington, Terrence Meiczinger, Paul Davis, Ole Laursen"));
                wxArrayString authors;