Enable manual generation when running `make dist',

and include the (single page) HTML pages in the tarball.
This commit is contained in:
Jordà Polo 2007-09-16 08:19:07 +00:00
parent a817bd504c
commit c15f041e1c
3 changed files with 6 additions and 14 deletions

View file

@ -21,7 +21,7 @@ endif
finddata=(cd $(top_srcdir) && find data fonts sounds $(findfilterflags) -o -print \
$(findmoredata) )
finddatadirs=(cd $(top_srcdir) && find data fonts sounds -type d \! \( -name .svn -prune \) -print; $(findmoredatadirs) )
findnoinst=(cd $(top_srcdir) && find utils -name .svn -prune -o -name ".\#*" -o -type d -o -print && find MANUAL*)
findnoinst=(cd $(top_srcdir) && find utils -name .svn -prune -o -name ".\#*" -o -type d -o -print && find MANUAL* && find doc/manual -name "*.html" )
w_preparefileinstall = if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
case $$p in \

View file

@ -585,9 +585,7 @@ else
manualdeps=yes
fi
# Disable manual update until it is ready.
#AM_CONDITIONAL([MANUALUPDATE], [test "x$manualdeps" = "xyes"])
AM_CONDITIONAL([MANUALUPDATE], [false])
AM_CONDITIONAL([MANUALUPDATE], [test "x$manualdeps" = "xyes"])
#######################################################################
# Checks for libraries. #

View file

@ -1,4 +1,6 @@
if MANUALUPDATE
dist_noinst_DATA = images/main-menu.jpg images/recruit.jpg styles/manual.css
XSLTOPTS = --nonet \
--stringparam callout.graphics 0 \
--stringparam navig.graphics 0 \
@ -23,20 +25,12 @@ update-po4a: manual.en.xml
dist-hook: update-po4a
@for i in manual.*.xml; do \
lang=$$(echo $$i | sed -e 's/manual\.\([a-zA-Z_@]*\)\.xml/\1/'); \
echo "Generating manual from «manual.$$lang.xml»..."; \
echo "Generating manual from manual.$$lang.xml..."; \
rm -f manual.$$lang.html; \
$(XSLTPROC) $(XSLTOPTS) "/etc/asciidoc/docbook-xsl/xhtml.xsl" \
"manual.$$lang.xml" > "manual.$$lang.html"; \
rm -rf $$lang && mkdir $$lang; \
cd $$lang && ln -s ../images . && ln -s ../styles . && cd -; \
$(XSLTPROC) $(XSLTOPTS) --stringparam base.dir "$$lang/" \
"/etc/asciidoc/docbook-xsl/chunked.xsl" "manual.$$lang.xml"; \
"manual.$$lang.xml" > "manual.$$lang.html"; \
done
clean-local:
rm -f *.xml
distclean-local:
for i in manual.*.xml; do rm -rf $$i; done
rm -f *.html *.xml
endif