#!/bin/bash CSS= TARGET= STYLE=@XSLDIR@/local.xsl OPTIONS="--stringparam chunker.output.indent yes" if [ -z "$*" ]; then echo "Usage: `basename $0` hoge.xml" exit 1 fi while [ ! -z "$*" ]; do case $1 in --clean) rm *.html ;; *) TARGET=$1 OPTIONS="${OPTIONS} --stringparam db.chunk.basename `basename $TARGET .xml`" ;; esac shift done if [ -z $TARGET ]; then echo "No target" exit 1 fi xsltproc ${OPTIONS} ${STYLE} ${TARGET} # vi:syntax=sh