summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-12-18 10:24:49 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-12-18 10:24:49 (GMT)
commit92c305aaf399f931db15efff6812a56a09a6a1dc (patch)
treed3c211602d1f3abd66a1730fb974701d11926994
parentc9bd5d95ace29a957a4d555fabe734eab6344215 (diff)
downloadmxe-92c305aaf399f931db15efff6812a56a09a6a1dc.zip
mxe-92c305aaf399f931db15efff6812a56a09a6a1dc.tar.gz
mxe-92c305aaf399f931db15efff6812a56a09a6a1dc.tar.bz2
generate list of year for copyright message automatically from "hg log"
-rw-r--r--Makefile1
-rw-r--r--doc/index.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a31609c..042a090 100644
--- a/Makefile
+++ b/Makefile
@@ -237,6 +237,7 @@ dist:
| $(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/'
diff --git a/doc/index.html b/doc/index.html
index ed4b150..36081b9 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -1080,7 +1080,7 @@ https://...</pre>
</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>