From 9f01e7422174235c3e5d6015b98bfb04466934f8 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Thu, 10 Apr 2003 09:02:12 +0000 Subject: [PATCH] include tumble version in usage message. --- Makefile | 5 ++++- tumble.c | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4fa0c89..dcc628f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # tumble: build a PDF file from image files # Makefile -# $Id: Makefile,v 1.40 2003/04/10 00:47:30 eric Exp $ +# $Id: Makefile,v 1.41 2003/04/10 01:02:12 eric Exp $ # Copyright 2001, 2002, 2003 Eric Smith # # This program is free software; you can redistribute it and/or modify @@ -85,6 +85,9 @@ AUTO_HDRS = parser.tab.h bitblt_tables.h g4_tables.h AUTO_MISC = parser.output +CFLAGS := $(CFLAGS) -DTUMBLE_VERSION=$(VERSION) + + -include Maketest diff --git a/tumble.c b/tumble.c index e4121cb..1bf5db1 100644 --- a/tumble.c +++ b/tumble.c @@ -2,7 +2,7 @@ * tumble: build a PDF file from image files * * Main program - * $Id: tumble.c,v 1.42 2003/04/10 00:47:30 eric Exp $ + * $Id: tumble.c,v 1.43 2003/04/10 01:02:12 eric Exp $ * Copyright 2001, 2002, 2003 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -62,10 +62,14 @@ char *progname; bool close_pdf_output_files (void); +#define QMAKESTR(x) #x +#define MAKESTR(x) QMAKESTR(x) + + void usage (void) { fprintf (stderr, "\n"); - fprintf (stderr, "tumble - Copyright 2001-2003 Eric Smith \n"); + fprintf (stderr, "tumble version " MAKESTR(TUMBLE_VERSION) " - Copyright 2001-2003 Eric Smith \n"); fprintf (stderr, "http://tumble.brouhaha.com/\n"); fprintf (stderr, "\n"); fprintf (stderr, "usage:\n");