# HG changeset patch # User Daniel Poelzleithner # Date 1286281717 -7200 # Node ID adc1b0554667efcff30bc1c3e5cf4899b9df302e # Parent e1b916d2e489f747bbe8db553276b865f9f5338e add make file to generate html help files diff -r e1b916d2e489 -r adc1b0554667 README --- a/README Tue Oct 05 05:42:20 2010 +0200 +++ b/README Tue Oct 05 14:28:37 2010 +0200 @@ -61,7 +61,11 @@ 7. Compile help messages from wiki to html -cd /opt/liquid_feedback_frontend/locale/help +cd /opt/liquid_feedback_frontend/locale/ +make + +or by hand: + for file in *.txt; do /opt/rocketwiki-lqfb/rocketwiki-lqfb < $file > $file.html; done diff -r e1b916d2e489 -r adc1b0554667 locale/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale/Makefile Tue Oct 05 14:28:37 2010 +0200 @@ -0,0 +1,21 @@ +PATH:=$(PATH):/opt/rocketwiki-lqfb/ + +DIRS = help +HTML_SOURCE := $(foreach DIR,$(DIRS),$(wildcard $(DIR)/*.txt)) +HTML_HELP := $(HTML_SOURCE:.txt=.txt.html) +TARGET = all + + +%.txt.html: %.txt + rocketwiki-lqfb < $< > $@ + + +help_html: $(HTML_HELP) + echo $(HTML_SOURCE) + echo $(HTML_HELP) +# for FILE in help/*.txt; do echo $FILE; rocketwiki-lqfb < $FILE ; done + +clean: + rm -f $(HTML_HELP) + +all: help_html