Overview
SHA1 Hash: | c2d1e3c70ab5f209fc6df4f10bc6920f239c7f5b |
---|---|
Date: | 2007-09-22 17:38:57 |
User: | drh |
Comment: | Improved display of version information on the help command. Display fossil version number and date on the bottom of every webpage. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/main.c from [17322e8c2b] to [1a17fea25b].
@@ -385,11 +385,11 @@ int rc, idx; const char *z; if( g.argc!=3 ){ printf("Usage: %s help COMMAND.\nAvailable COMMANDs:\n", g.argv[0]); cmd_cmd_list(); - printf("You are running fossil baseline " MANIFEST_UUID "\n"); + printf("This is fossil version " MANIFEST_VERSION " " MANIFEST_DATE "\n"); return; } rc = name_search(g.argv[2], aCommand, count(aCommand), &idx); if( rc==1 ){ fossil_fatal("unknown command: %s", g.argv[2]);
Modified src/main.mk from [8bdfcd9b6e] to [bf38d6b94e].
@@ -187,12 +187,14 @@ # build is done from, i.e. the checkout belongs to. Do not sync/push # 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) clean:
Modified src/makemake.tcl from [2a6513c5c3] to [4fcb36eb8d].
@@ -112,13 +112,18 @@ # build is done from, i.e. the checkout belongs to. Do not sync/push # 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) clean:
Modified src/style.c from [4e8cafc457] to [974ef8af80].
@@ -125,10 +125,14 @@ /* ** Draw the footer at the bottom of the page. */ void style_footer(void){ + @ <hr> + @ <p align="left"><font size="1"> + @ Fossil version %s(MANIFEST_VERSION) %s(MANIFEST_DATE) + @ </font></p> } /* ** WEBPAGE: index ** WEBPAGE: home