summaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-07 09:18:43 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-07 09:18:43 +0100
commitee08497a002fbf0dc1884a9a679c3831215d7699 (patch)
tree0de2f6815a608871b324d7951c15a00cf16c901c /src/DabMod.cpp
parent45fa35c61f280c9bed0d2cbff11f91609f66baa4 (diff)
downloaddabmod-ee08497a002fbf0dc1884a9a679c3831215d7699.tar.gz
dabmod-ee08497a002fbf0dc1884a9a679c3831215d7699.tar.bz2
dabmod-ee08497a002fbf0dc1884a9a679c3831215d7699.zip
fix versioning and tarball generationv0.4.0
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 66665bd..4adce76 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -78,8 +78,14 @@ void signalHandler(int signalNb)
void printUsage(char* progName, FILE* out = stderr)
{
- fprintf(out, "Welcome to %s %s%s, compiled at %s, %s\n\n",
- PACKAGE, VERSION, GITVERSION, __DATE__, __TIME__);
+ fprintf(out, "Welcome to %s %s, compiled at %s, %s\n\n",
+ PACKAGE,
+#if defined(GITVERSION)
+ GITVERSION,
+#else
+ VERSION,
+#endif
+ __DATE__, __TIME__);
fprintf(out, "Usage with configuration file:\n");
fprintf(out, "\t%s -C config_file.ini\n\n", progName);