# HG changeset patch # User jwe # Date 792801614 0 # Node ID 05611efd5bfe539f457a4e98269e03c07a12ad16 # Parent 3535aa4d38c65d4d760053cff69851c42a0578eb [project @ 1995-02-14 22:37:27 by jwe] diff -r 3535aa4d38c6 -r 05611efd5bfe Makeconf.in --- a/Makeconf.in Tue Feb 14 22:20:16 1995 +0000 +++ b/Makeconf.in Tue Feb 14 22:40:14 1995 +0000 @@ -96,7 +96,7 @@ # A shell command to extract the version number from version.h. -getversion = sed -e '/version_string/!d' -e 's/.*"\(.*\)".*/\1/' -e q +getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q # The version number. TOPDIR is something like `.' or `..' or `../..' # and gets us back up to the top level of the source tree. diff -r 3535aa4d38c6 -r 05611efd5bfe octMakefile.in --- a/octMakefile.in Tue Feb 14 22:20:16 1995 +0000 +++ b/octMakefile.in Tue Feb 14 22:40:14 1995 +0000 @@ -292,10 +292,9 @@ snapshot-version: @echo "creating src/version.h" - @gawk '/static[ \t]+char[ \t]+version_string\[\] [ \t]*=/ { \ + @gawk '/#define VERSION[ \t]*/ { \ datestring = strftime("%y%m%d", systime()); \ - printf("static char version_string[] = \"ss-%s\";\n", \ - datestring); \ + printf("#define VERSION \"ss-%s\";\n", datestring); \ next; \ } { print $$0 }' src/version.h > src/version.h.new @$(top_srcdir)/move-if-change src/version.h.new src/version.h