Mercurial > hg > octave-avbm
changeset 1105:05611efd5bfe
[project @ 1995-02-14 22:37:27 by jwe]
author | jwe |
---|---|
date | Tue, 14 Feb 1995 22:40:14 +0000 |
parents | 3535aa4d38c6 |
children | 676db72ec37c |
files | Makeconf.in octMakefile.in |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makeconf.in +++ b/Makeconf.in @@ -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.
--- a/octMakefile.in +++ b/octMakefile.in @@ -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