Mercurial > hg > batmud > misc
view update-xml-to-html.sh @ 74:6483aa47f297 misc
Oops, some blasts got counted twice.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 09 Apr 2010 16:32:46 +0000 |
parents | ba7260d6dbd9 |
children | ecad4df615cd |
line wrap: on
line source
#!/bin/sh XML="$1" HTML=`echo "$XML"|sed "s/\.xml$/.html/"` echo "Converting $XML to $HTML ..." xsltproc --stringparam html.stylesheet "http://tnsp.org/~ccr/ggrtf/html/manual.css" \ --output "$HTML" \ /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl "$XML" && \ tidy -w 120 -utf8 -asxhtml -i -m "$HTML" if test -e "$HTML"; then scp "$XML" "$HTML" ccr@tnsp.org:public_html/bat/ fi