summaryrefslogtreecommitdiffstats
path: root/doc/module.rules
diff options
context:
space:
mode:
authorkonablend <[email protected]>2009-03-04 21:28:47 +0000
committerkonablend <[email protected]>2009-03-04 21:28:47 +0000
commit3ca54dc4fdee70ca197cffc7015fa7317d75e380 (patch)
tree058d256e764db072e07299b6216db6920ae331b3 /doc/module.rules
parent103f4bb2dfe194dc7bee565fc981fcd8c5beed88 (diff)
BuildSystem:
- added new target: make report.help (for cvk_b). - updated doc accordingly. - updated doc QuickStart chapter to be clearer for novices. - added wiki auto-posting targets which are work-in-progress git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2221 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'doc/module.rules')
-rw-r--r--doc/module.rules37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/module.rules b/doc/module.rules
index d4cc7b737..f86b66c09 100644
--- a/doc/module.rules
+++ b/doc/module.rules
@@ -31,3 +31,40 @@ $(DOC.m4.out): | $(dir $(DOC.m4.out))
$(DOC.m4.out): $(DOC.M4.deps)
$(DOC.m4.out): $(DOC.out/)%: $(DOC.in/)%.m4
$(call DOC.M4,$@,$<)
+
+###############################################################################
+
+#.PHONY: wiki.post wiki.sync wiki.rm wiki.add wiki.propset wiki.clean
+
+## main target
+wiki.post: $(WIKI.out/) wiki.sync wiki.rm wiki.add wiki.propset
+
+$(WIKI.out/):
+ svn co --depth immediates $(WIKI.repo.url) $@
+ svn update --set-depth infinity $(WIKI.out.version/)
+
+## cleanup after post
+wiki.clean:
+ $(RM.exe) -fr $(WIKI.out/)
+
+wiki.sync: | $(WIKI.out.version/)
+wiki.sync: $(DOC.xml2wiki.out)
+ rsync -vrptPL --delete $^ $(WIKI.out.version/)
+
+wiki.rm:
+ @files=`svn status $(WIKI.out.version/) | grep '^!' | awk '{ print $$2 }'`; \
+ if [ -n "$$files" ]; then \
+ svn rm $$files; \
+ fi
+
+wiki.add:
+ @files=`svn status $(WIKI.out.version/) | grep '^?' | awk '{ print $$2 }'`; \
+ if [ -n "$$files" ]; then \
+ svn add $$files; \
+ fi
+
+wiki.propset:
+ find $(WIKI.out.version/) -type f -a -name "*.wiki" -print0 \
+ | xargs -0 svn propset svn:eol-style native
+ find $(WIKI.out.version/) -type f -a -name "*.wiki" -print0 \
+ | xargs -0 svn propset svn:mime-type "text/html"