- $(top_srcdir)/doc/pspp.texi -o - \
- | $(SED) -e 's/Time-&-Date/Time-\&-Date/g' \
- -e 's/“/\“/g' \
- -e 's/”/\”/g' \
- -e 's/‘/\‘/g' \
- -e 's/’/\’/g' \
- -e 's/—/\—/g' \
- -e 's/–/\′/g' \
- -e 's/é/\é/g' \
- -e 's/©/\©/g' \
- -e 's/−/\−/g' \
- -e 's/…/\…/g' \
- -e 's/•/\ߦ/g' \
- -e 's/././g' \
- -e 's%\(<figure [^>]*\)>%\1/>%g' \
- | $(AWK) '/<para>.*<table.*>.*<\/para>/{x=sub("</para>",""); print; s=1;next}/<\/table>/{print; if (s==1) print "</para>"; s=0; next}1' \
- > $@,tmp
- $(AM_V_at)$(XMLLINT) --output /dev/null $@,tmp
- $(AM_V_at)cat $(top_srcdir)/doc/help-pages-list | while read node ; do \
- $(XMLLINT) --xpath "$$node" $@,tmp > /dev/null; \
- if test $$? -ne 0 ; then echo "$$node does not appear in $@" ; exit 1; fi ; \
- done
- mv $@,tmp $@