Diff
Not logged in

Differences From:

File src/main.mk part of check-in [2bc0e2c565] - Work toward adding a tagging system. Code compiles but is incomplete and probably does not work. by drh on 2007-09-21 02:41:53. [view]

To:

File src/main.mk part of check-in [c2d1e3c70a] - Improved display of version information on the help command. Display fossil version number and date on the bottom of every webpage. by drh on 2007-09-22 17:38:57. [view]

@@ -188,10 +188,12 @@
 # the repository after running the tests.
 test:	$(APPNAME)
 	$(TCLSH) test/tester.tcl $(APPNAME)
 
-VERSION.h:	$(SRCDIR)/../manifest.uuid
+VERSION.h:	$(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest
 	awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}'  $(SRCDIR)/../manifest.uuid >VERSION.h
+	awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}'  $(SRCDIR)/../manifest.uuid >>VERSION.h
+	awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n", substr($$2,1,10),substr($$2,12)}'  $(SRCDIR)/../manifest >>VERSION.h
 
 $(APPNAME):	headers $(OBJ) sqlite3.o
 	$(TCC) -o $(APPNAME) $(OBJ) sqlite3.o $(LIB)