]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
build: Create dependencies on the fly and implement dynamic versioning
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index 0992ec6fd18651f85c2bab2c7d8d45603b3a786c..77b2dc558396e943cb2c58c32947c36e21c54c1f 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -1820,6 +1820,7 @@ static int setup_signal_handling(void)
        return install_sighandler(SIGCHLD);
 }
 
+const char *dss_version(void);
 static void handle_version_and_help(void)
 {
        char *txt;
@@ -1829,7 +1830,7 @@ static void handle_version_and_help(void)
        else if (OPT_GIVEN(DSS, HELP))
                txt = lls_short_help(CMD_PTR(DSS));
        else if (OPT_GIVEN(DSS, VERSION))
-               txt = make_message("%s\n", VERSION_STRING);
+               txt = make_message("%s\n", dss_version());
        else
                return;
        printf("%s", txt);