[renpy] 34/146: Added rule to download documentation
Markus Koschany
apo-guest at moszumanska.debian.org
Tue Jan 12 19:40:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch experimental
in repository renpy.
commit 9cb8bb3e7b6034b532af6ba882f63485b80ae808
Author: Miriam Ruiz <little_miry at yahoo.es>
Date: Wed Feb 27 19:05:29 2008 +0000
Added rule to download documentation
---
debian/rules | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index e4a6403..d3cfc0b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -144,5 +144,32 @@ get-orig-source:
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/renpy.git
More information about the Pkg-games-commits
mailing list