Mercurial > hg > batmud > misc
changeset 59:1dc2f74c4b66 misc
Fix generation and upload process to be more error resilient.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Nov 2009 11:38:51 +0000 |
parents | 564aa8980bf6 |
children | c54ef70bf6be |
files | update-xml-to-html.sh |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/update-xml-to-html.sh Tue Nov 24 11:22:20 2009 +0000 +++ b/update-xml-to-html.sh Tue Nov 24 11:38:51 2009 +0000 @@ -2,7 +2,12 @@ XML="$1" HTML=`echo "$XML"|sed "s/\.xml$/.html/"` echo "Converting $XML to $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/ +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 "$HTML" ccr@tnsp.org:public_html/bat/ +fi +