mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
doc: Move build scripts into separate directory
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
d67412220a
commit
004ba5b3ea
20
doc/Makefile
20
doc/Makefile
@ -19,6 +19,8 @@ MANUAL_URL="https://wiki.debian.org/FreedomBox/Manual?action=show&mimetype=text%
|
|||||||
|
|
||||||
OUTPUTS=freedombox-manual.pdf plinth.1 manual-pages
|
OUTPUTS=freedombox-manual.pdf plinth.1 manual-pages
|
||||||
|
|
||||||
|
SCRIPTS_DIR=scripts
|
||||||
|
|
||||||
# In order to debug various problems with the documents especially
|
# In order to debug various problems with the documents especially
|
||||||
# intermediate LaTeX state, run make as follows:
|
# intermediate LaTeX state, run make as follows:
|
||||||
#
|
#
|
||||||
@ -50,9 +52,9 @@ all: $(OUTPUTS)
|
|||||||
fetch:
|
fetch:
|
||||||
wget --quiet -O - $(MANUAL_URL) | \
|
wget --quiet -O - $(MANUAL_URL) | \
|
||||||
xmllint --format --output freedombox-manual.raw.xml -
|
xmllint --format --output freedombox-manual.raw.xml -
|
||||||
xsltproc fetch-images.xslt freedombox-manual.raw.xml | sort -u | \
|
xsltproc $(SCRIPTS_DIR)/fetch-images.xslt freedombox-manual.raw.xml | \
|
||||||
awk 'NF {print "wget --quiet -O images/" $$1 " " $$2}' | sh
|
sort -u | awk 'NF {print "wget --quiet -O images/" $$1 " " $$2}' | sh
|
||||||
./fetch-manual-pages
|
$(SCRIPTS_DIR)/fetch-manual-pages
|
||||||
|
|
||||||
.PHONY: manual-pages
|
.PHONY: manual-pages
|
||||||
manual-pages-list:=$(shell cat manual-pages.list) freedombox-manual
|
manual-pages-list:=$(shell cat manual-pages.list) freedombox-manual
|
||||||
@ -68,13 +70,13 @@ manual-pages: $(manual-pages-part-html)
|
|||||||
%.part.html: %.html
|
%.part.html: %.html
|
||||||
perl -pe 'BEGIN {undef $$/} s/.*<body[^>]*>(.*)<\/body\s*>.*/$$1/si' $< > $@
|
perl -pe 'BEGIN {undef $$/} s/.*<body[^>]*>(.*)<\/body\s*>.*/$$1/si' $< > $@
|
||||||
|
|
||||||
freedombox-manual.xml: freedombox-manual.raw.xml fixes.xslt
|
freedombox-manual.xml: freedombox-manual.raw.xml $(SCRIPTS_DIR)/fixes.xslt
|
||||||
xsltproc --output $@ fixes.xslt $<
|
xsltproc --output $@ $(SCRIPTS_DIR)/fixes.xslt $<
|
||||||
|
|
||||||
%.xml: %.raw.xml manual-page-fixes.xslt
|
%.xml: %.raw.xml $(SCRIPTS_DIR)/manual-page-fixes.xslt
|
||||||
xsltproc --output $@ manual-page-fixes.xslt $<
|
xsltproc --output $@ $(SCRIPTS_DIR)/manual-page-fixes.xslt $<
|
||||||
./post-processor remove-footer $@
|
$(SCRIPTS_DIR)/post-processor remove-footer $@
|
||||||
./post-processor fix-wiki-urls $@
|
$(SCRIPTS_DIR)/post-processor fix-wiki-urls $@
|
||||||
|
|
||||||
%.html: %.xml
|
%.html: %.xml
|
||||||
xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml5/docbook.xsl $<
|
xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml5/docbook.xsl $<
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user