Rob Landley <rland...@parallels.com> writes: > #!/bin/bash > > for i in lxc-*.in > do > echo $i > OUT=$(echo $i | sed 's/\.in$//') > HTML=$(echo $i | sed 's/\.sgml\.in$/.html/') > echo "<?xml version='1.0' encoding='UTF-8'?>" > $OUT > echo '<?xml-stylesheet type="text/xsl" > href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>' > >> $OUT > sed -e 's@<!DOCTYPE refentry PUBLIC .*@<!DOCTYPE refentry PUBLIC > "-//OASIS//DTD DocBook XML V4.4//EN" > "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [@' \ > -e 'sX@builddir@/XX' $i >> $OUT
Personally I would prefer to see these changes just patched permanently in git (and rename s/.sgml/.xml/), so that the Makefile can simply be something like html: $(patsubst %.xml,%.html,$(wildcard lxc-*.xml)) xsltproc http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< >$@ ...then Rob (or anyone else) can simply do "make -C doc html" or so in their favourite git checkout. PS: instead of HTML=$(echo $i | sed 's/\.sgml\.in$/.html/') try HTML="${i%.sgml.in}.html". See PATTERN SUBSTITUTIONS in the bash manpage, though this is POSIX portable sh. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel