changeset 1516:1e071bb32b42

generate list of year for copyright message automatically from "hg log"
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 18 Dec 2010 11:24:49 +0100
parents 8892f565e4a7
children c7fd27f6874e
files Makefile doc/index.html
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Dec 18 09:56:24 2010 +0100
+++ b/Makefile	Sat Dec 18 11:24:49 2010 +0100
@@ -237,6 +237,7 @@
 	| $(SED) 's,\(<span class="version">\)[^<]*\(</span>\),\1$(VERSION)\2,g' \
 	| $(SED) 's,\(<span class="target">\)[^<]*\(</span>\),\1$(TARGET)\2,g' \
 	| $(SED) 's,\(<span class="target-underscore">\)[^<]*\(</span>\),\1$(subst -,_,$(TARGET))\2,g' \
+	| $(SED) 's;\(<span class="years">\)[^<]*\(</span>\);\1'"`LC_ALL=en_US.UTF-8 hg log | $(SED) -n 's,^date:.*\s\([0-9]\{4\}\)\s.*$$,\1,p' | sort -nu | $(SED) -n '1 h; 2,$$ H; $$ {x; s/\n/, /gp}'`"'\2;g' \
 	>'$(DIST_DIR)/mingw-cross-env-$(VERSION)/doc/index.html'
 	cp -p '$(TOP_DIR)/doc'/screenshot-* '$(DIST_DIR)/mingw-cross-env-$(VERSION)/doc/'
 	cp -p '$(DIST_DIR)/mingw-cross-env-$(VERSION)/doc'/* '$(DIST_DIR)/web/'
--- a/doc/index.html	Sat Dec 18 09:56:24 2010 +0100
+++ b/doc/index.html	Sat Dec 18 11:24:49 2010 +0100
@@ -1080,7 +1080,7 @@
 </div>
 
 <div class="section">
-<h2 id="copyright">Copyright © 2007, 2008, 2009, 2010</h2>
+<h2 id="copyright">Copyright © <span class="years">XXXX, YYYY, ZZZZ</span></h2>
 
     <ul id="authors-list" class="compact-list">
     </ul>