Thu, 10 Apr 2003 09:02:12 +0000
include tumble version in usage message.
Makefile | file | annotate | diff | revisions | |
tumble.c | file | annotate | diff | revisions |
1.1 diff -r 160d624271cc -r e5452e27f518 Makefile 1.2 --- a/Makefile Thu Apr 10 08:47:30 2003 +0000 1.3 +++ b/Makefile Thu Apr 10 09:02:12 2003 +0000 1.4 @@ -1,6 +1,6 @@ 1.5 # tumble: build a PDF file from image files 1.6 # Makefile 1.7 -# $Id: Makefile,v 1.40 2003/04/10 00:47:30 eric Exp $ 1.8 +# $Id: Makefile,v 1.41 2003/04/10 01:02:12 eric Exp $ 1.9 # Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.10 # 1.11 # This program is free software; you can redistribute it and/or modify 1.12 @@ -85,6 +85,9 @@ 1.13 AUTO_MISC = parser.output 1.14 1.15 1.16 +CFLAGS := $(CFLAGS) -DTUMBLE_VERSION=$(VERSION) 1.17 + 1.18 + 1.19 -include Maketest 1.20 1.21
2.1 diff -r 160d624271cc -r e5452e27f518 tumble.c 2.2 --- a/tumble.c Thu Apr 10 08:47:30 2003 +0000 2.3 +++ b/tumble.c Thu Apr 10 09:02:12 2003 +0000 2.4 @@ -2,7 +2,7 @@ 2.5 * tumble: build a PDF file from image files 2.6 * 2.7 * Main program 2.8 - * $Id: tumble.c,v 1.42 2003/04/10 00:47:30 eric Exp $ 2.9 + * $Id: tumble.c,v 1.43 2003/04/10 01:02:12 eric Exp $ 2.10 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 2.11 * 2.12 * This program is free software; you can redistribute it and/or modify 2.13 @@ -62,10 +62,14 @@ 2.14 bool close_pdf_output_files (void); 2.15 2.16 2.17 +#define QMAKESTR(x) #x 2.18 +#define MAKESTR(x) QMAKESTR(x) 2.19 + 2.20 + 2.21 void usage (void) 2.22 { 2.23 fprintf (stderr, "\n"); 2.24 - fprintf (stderr, "tumble - Copyright 2001-2003 Eric Smith <eric@brouhaha.com>\n"); 2.25 + fprintf (stderr, "tumble version " MAKESTR(TUMBLE_VERSION) " - Copyright 2001-2003 Eric Smith <eric@brouhaha.com>\n"); 2.26 fprintf (stderr, "http://tumble.brouhaha.com/\n"); 2.27 fprintf (stderr, "\n"); 2.28 fprintf (stderr, "usage:\n");