include tumble version in usage message.

Thu, 10 Apr 2003 09:02:12 +0000

author
eric
date
Thu, 10 Apr 2003 09:02:12 +0000
changeset 158
e5452e27f518
parent 157
160d624271cc
child 159
2af017feadca

include tumble version in usage message.

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