From b0113afac2a68066fafbb2796963fa2cb72ac638 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 10 Mar 2014 21:33:25 +0100 Subject: Add version number to the programs --- src/mot-encoder.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mot-encoder.c') diff --git a/src/mot-encoder.c b/src/mot-encoder.c index efa8f68..1fdc58e 100644 --- a/src/mot-encoder.c +++ b/src/mot-encoder.c @@ -97,14 +97,19 @@ void writeDLS(int output_fd, const char* dls_file, int padlen); void usage(char* name) { - fprintf(stderr, "DAB MOT encoder for slideshow and DLS\n\n" + fprintf(stderr, "DAB MOT encoder %s for slideshow and DLS\n\n" "By CSP Innovazione nelle ICT s.c.a r.l. (http://rd.csp.it/)\n\n" "Reads image data from the specified directory, and outputs PAD data\n" "on standard output\n" "Reads DLS from /tmp/dls.file\n\n" "WARNING: This program has memory leaks! Do not attempt\n" "to leave it running for long periods of time!\n\n" - " http://opendigitalradio.org\n\n" + " http://opendigitalradio.org\n\n", +#if defined(GITVERSION) + GITVERSION +#else + PACKAGE_VERSION +#endif ); fprintf(stderr, "Usage: %s [OPTIONS...]\n", name); fprintf(stderr, " -d, --dir=DIRNAME Directory to read images from.\n" -- cgit v1.2.3