r5925 - packages/trunk/renpy/debian
Miriam Ruiz
baby-guest at alioth.debian.org
Wed Feb 27 19:05:29 UTC 2008
Author: baby-guest
Date: 2008-02-27 19:05:29 +0000 (Wed, 27 Feb 2008)
New Revision: 5925
Modified:
packages/trunk/renpy/debian/rules
Log:
Added rule to download documentation
Modified: packages/trunk/renpy/debian/rules
===================================================================
--- packages/trunk/renpy/debian/rules 2008-02-27 16:04:54 UTC (rev 5924)
+++ packages/trunk/renpy/debian/rules 2008-02-27 19:05:29 UTC (rev 5925)
@@ -144,5 +144,32 @@
rm -rf "renpy-$(RENPY_VERSION)"
mv "renpy_$(RENPY_VERSION).ds1.orig.tar.gz" ..
+get-doc:
+ dh_testdir
+ dh_testroot
+ mkdir tmp-doc
+ cd tmp-doc && \
+ wget --page-requisites --recursive --no-parent --convert-links --html-extension \
+ --no-host-directories \
+ --cut-dirs=3 --execute robots=off \
+ --include-directories='/wiki/renpy/doc,/w' \
+ http://www.renpy.org/wiki/renpy/doc/reference \
+ http://www.renpy.org/wiki/renpy/doc/tutorials \
+ http://www.renpy.org/wiki/renpy/Features \
+ http://www.renpy.org/wiki/renpy/License
+ cd tmp-doc && \
+ find . -name "*.html" | while read f; do \
+ cp "$$f" tmp1.html ; \
+ awk '/<!-- start content -->/,/<!-- Saved in parser cache/' tmp1.html \
+ | grep -v '<!-- start content -->' \
+ | grep -v '<!-- Saved in parser cache' \
+ | grep -v 'http://www.renpy.org/wiki/renpy/Home_Page?action=AttachFile&do=get&target=launcher.png' \
+ > tmp2.html ; \
+ sed --regexp-extended 's,<span class="editsection">\[.*\] *</span>,,g' \
+ tmp2.html >tmp3.html ; \
+ tidy tmp3.html > "$$f" ; \
+ rm -f tmp* ; \
+ done
+
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install-indep install-arch install configure get-orig-source
+.PHONY: build clean binary-indep binary-arch binary install-indep install-arch install configure get-doc get-orig-source
More information about the Pkg-games-commits
mailing list