|
|
|
@ -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/'
|
|
|
|
|