view update-xml-to-html.sh @ 0:81f1abadda3e misc

Renamed.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 17 Jul 2008 12:04:43 +0000
parents
children a1c3b6c2be8c
line wrap: on
line source

#!/bin/sh
XML="$1"
HTML=`echo "$XML"|sed "s/\.xml$/.html/"`

xsltproc --stringparam html.stylesheet "http://low.fi/~ccr/ggrtf/html/manual.css"	\
	/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl "$XML" > "$HTML" &&	\
	tidy -w 120 -utf8 -asxhtml -i -m "$HTML" &&	\
	scp "$HTML" ccr@low.fi:public_html/bat/