changeset 426:a6067610d2dd

[project @ 1994-05-23 23:16:05 by jwe]
author jwe
date Mon, 23 May 1994 23:16:05 +0000
parents 4eb46050dba3
children a222980dfa55
files octMakefile.in
diffstat 1 files changed, 9 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/octMakefile.in	Mon May 23 22:04:37 1994 +0000
+++ b/octMakefile.in	Mon May 23 23:16:05 1994 +0000
@@ -212,17 +212,15 @@
 	rm -f .fname
 .PHONY: split-local-dist
 
-newversion:
-	awk '/static[ \t]+char[ \t]+version_string\[\] [ \t]*=/ { \
-	  beg = index ($$5, ".") + 1; \
-	  end = index ($$5, ";") - 2; \
-	  len_major = beg - 3; \
-	  len_minor = end - beg + 1; \
-	  major = substr ($$5, 2, len_major); \
-	  minor = substr ($$5, beg, len_minor); \
-	  printf ("static char version_string[] = \"%d.%d\";\n", \
-		  major, ++minor); \
+snapshot: snapshot-version dist
+.PHONY: snapshot
+
+snapshot-version:
+	gawk '/static[ \t]+char[ \t]+version_string\[\] [ \t]*=/ { \
+	  datestring = strftime("%y%m%d", systime()); \
+	  printf("static char version_string[] = \"ss-%s\";\n", \
+		 datestring); \
 	  next; \
 	} { print $$0 }' src/version.h > src/version.h.new
 	mv src/version.h.new src/version.h
-.PHONY: newversion
+.PHONY: snapshot-version