Revision 2805,
471 bytes
checked in by yasumichi, 14 years ago
(diff) |
basename に与える suffix を修正
|
Rev | Line | |
---|
[840] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | CSS= |
---|
| 4 | TARGET= |
---|
| 5 | STYLE=@XSLDIR@/local.xsl |
---|
| 6 | OPTIONS="--stringparam chunker.output.indent yes" |
---|
| 7 | |
---|
| 8 | if [ -z "$*" ]; then |
---|
| 9 | echo "Usage: `basename $0` hoge.xml" |
---|
| 10 | exit 1 |
---|
| 11 | fi |
---|
| 12 | |
---|
| 13 | while [ ! -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 |
---|
| 24 | done |
---|
| 25 | |
---|
| 26 | if [ -z $TARGET ]; then |
---|
| 27 | echo "No target" |
---|
| 28 | exit 1 |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | xsltproc ${OPTIONS} ${STYLE} ${TARGET} |
---|
| 32 | |
---|
| 33 | # vi:syntax=sh |
---|
Note: See
TracBrowser
for help on using the repository browser.