Mercurial > hg > batmud > misc
view update-xml-to-html.sh @ 314:7615bf7f980f misc
Cosmetics + HTML syntax.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 29 Dec 2015 15:59:28 +0200 |
parents | ecad4df615cd |
children | 32a5a3a88f0a |
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 200 -utf8 -asxhtml -i -m "$HTML" if test -e "$HTML"; then scp "$XML" "$HTML" ccr@tnsp.org:public_html/bat/ fi