m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: 21-gary-AS_BOX-and-TIMESTAMP-in-version.patch


From: Gary V. Vaughan
Subject: FYI: 21-gary-AS_BOX-and-TIMESTAMP-in-version.patch
Date: Thu, 4 Oct 2001 22:20:52 +0100
User-agent: Mutt/1.3.16i

Index: ChangeLog
from  Gary V. Vaughan  <address@hidden>

        * configure.ac (TIMESTAMP): Display with AS_BOX at configure
        time.  Define it for config.h in order to...
        * src/main.c (main): ...display the timestamp for --version.

Index: configure.ac
===================================================================
RCS file: /cvsroot/m4/m4/configure.ac,v
retrieving revision 1.2
diff -u -r1.2 configure.ac
--- configure.ac 2001/10/01 07:56:20 1.2
+++ configure.ac 2001/10/04 21:12:52
@@ -43,17 +43,12 @@
 case AC_PACKAGE_VERSION in
   *[[acegikmoqsuwy]])
     TIMESTAMP=`$CONFIG_SHELL $ac_aux_dir/mkstamp < $srcdir/ChangeLog`
-    banner="Configuring AC_PACKAGE_TARNAME AC_PACKAGE_VERSION$TIMESTAMP"
-    dashes=`echo "$banner" | sed 's/./-/g'`
-
-    # Display an obvious version banner
+    AS_BOX([Configuring AC_PACKAGE_TARNAME AC_PACKAGE_VERSION$TIMESTAMP])
     echo
-    echo $dashes
-    echo "$banner"
-    echo $dashes
-    echo
     ;;
 esac
+AC_DEFINE_UNQUOTED([TIMESTAMP], ["$TIMESTAMP"],
+    [Defined to a CVS timestamp for alpha releases of M4])
 
 
 
Index: src/main.c
===================================================================
RCS file: /cvsroot/m4/m4/src/main.c,v
retrieving revision 1.27
diff -u -r1.27 main.c
--- src/main.c 2001/09/30 22:26:57 1.27
+++ src/main.c 2001/10/04 21:12:53
@@ -364,7 +364,7 @@
 
   if (show_version)
     {
-      printf ("GNU %s %s\n", PACKAGE, VERSION);
+      printf ("GNU %s %s%s\n", PACKAGE, VERSION, TIMESTAMP);
       fputs (_("Written by Rene' Seindal and Gary V. Vaughan.\n"), stdout);
       putc ('\n', stdout);
 

-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]