diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-10-28 14:27:48 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-10-28 14:27:48 (GMT) |
commit | 082ba61734f72bcf534f1cdd7f9249e38c26c46f (patch) | |
tree | f0498031f78ef43bd9cd73ea2364660963d02562 | |
parent | f919c85bf1182d05ce708275eb2041db418069f5 (diff) | |
download | mxe-082ba61734f72bcf534f1cdd7f9249e38c26c46f.zip mxe-082ba61734f72bcf534f1cdd7f9249e38c26c46f.tar.gz mxe-082ba61734f72bcf534f1cdd7f9249e38c26c46f.tar.bz2 |
generate the list of authors automatically from the version history
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | doc/index.html | 14 |
2 files changed, 9 insertions, 14 deletions
@@ -235,14 +235,19 @@ dist: $(SED) -n '1,/<table id="package-list">/ p' '$(TOP_DIR)/doc/index.html' && \ ($(foreach PKG,$(PKGS), \ echo ' <tr><td><a href="$($(PKG)_WEBSITE)">$(PKG)</a></td><td>$($(PKG)_VERSION)</td></tr>';)) && \ - $(SED) '1,/<table id="package-list">/ d' '$(TOP_DIR)/doc/index.html' \ + $(SED) -n '/<table id="package-list">/,/<ul id="authors-list">/ p' '$(TOP_DIR)/doc/index.html' | \ + $(SED) '1d' && \ + (LC_ALL=C hg log | $(SED) -n 's,^\(user: *\([^<]*\) <.*\|.*(by \([^)]*\)).*\)$$,\2\3,p' | \ + sort | uniq -c | sort -nr | \ + $(SED) 's,^ *[0-9]* *\(.*\)$$, <li>\1</li>,') && \ + $(SED) '1,/<ul id="authors-list">/ d' '$(TOP_DIR)/doc/index.html' \ ) \ | $(SED) 's,\(<span class="version">\)[^<]*\(</span>\),\1$(VERSION)\2,g' \ | $(SED) 's,\(<span class="target">\)[^<]*\(</span>\),\1$(TARGET)\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/' - (cd '$(TOP_DIR)' && hg log -v --style changelog) >'$(DIST_DIR)/mingw-cross-env-$(VERSION)/doc/ChangeLog' + (cd '$(TOP_DIR)' && LC_ALL=C hg log -v --style changelog) >'$(DIST_DIR)/mingw-cross-env-$(VERSION)/doc/ChangeLog' cd '$(DIST_DIR)/mingw-cross-env-$(VERSION)/doc' && lynx -dump -width 75 -nolist -force_html index.html >README cp -p '$(TOP_DIR)/Makefile' '$(DIST_DIR)/mingw-cross-env-$(VERSION)/' cp -p '$(TOP_DIR)/src'/*.mk '$(DIST_DIR)/mingw-cross-env-$(VERSION)/src/' diff --git a/doc/index.html b/doc/index.html index 8ab4ef0..0319170 100644 --- a/doc/index.html +++ b/doc/index.html @@ -27,7 +27,7 @@ li, dt { margin-bottom: 0.8em; } - #authors li { + #authors-list li { margin-bottom: 0em; } .usage dt { @@ -667,17 +667,7 @@ pfexec python setup.py install</pre> <div class="section"> <h2 id="copyright">Copyright © 2009</h2> - <ul id="authors"> - <li>Volker Grabsch</li> - <li>Rocco Rutte</li> - <li>Andreas Roever</li> - <li>Martin Lambers</li> - <li>Tony Theodore</li> - <li>Giuseppe Scrivano</li> - <li>Martin Gerhardy</li> - <li>Mark Brand</li> - <li>Hans Bezemer</li> - <li>Gregory Smith</li> + <ul id="authors-list"> </ul> <p>(contact via the |