source: projects/vine-manual-build/trunk/vine-manual-build.in @ 4184

Revision 4184, 460 bytes checked in by yasumichi, 13 years ago (diff)

web 用に調整

RevLine 
[840]1#!/bin/bash
2
3CSS=
4TARGET=
[4184]5STYLE=@STYLE@
[840]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
[2805]20                        OPTIONS="${OPTIONS} --stringparam db.chunk.basename `basename $TARGET .xml`"
[840]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.