source: projects/vine-manual-build/tags/R_0_9_0/vine-manual-build.in @ 2805

Revision 2805, 471 bytes checked in by yasumichi, 13 years ago (diff)

basename に与える suffix を修正

Line 
1#!/bin/bash
2
3CSS=
4TARGET=
5STYLE=@XSLDIR@/local.xsl
6OPTIONS="--stringparam chunker.output.indent yes"
7
8if [ -z "$*" ]; then
9        echo "Usage: `basename $0` hoge.xml"
10        exit 1
11fi
12
13while [ ! -z "$*" ]; do
14        case $1 in
15                --clean)
16                        rm *.html
17                        ;;
18                *)
19                        TARGET=$1
20                        OPTIONS="${OPTIONS} --stringparam db.chunk.basename `basename $TARGET .xml`"
21                        ;;
22        esac
23        shift
24done
25
26if [ -z $TARGET ]; then
27        echo "No target"
28        exit 1
29fi
30
31xsltproc ${OPTIONS} ${STYLE} ${TARGET}
32
33# vi:syntax=sh
Note: See TracBrowser for help on using the repository browser.