|
Revision 61, 458 bytes
(checked in by pmoura, 7 years ago)
|
|
Changed default FOP path.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | FOP_PATH="/Applications/Fop-0.20.2" |
|---|
| 4 | |
|---|
| 5 | XSLT="lgtpdfa4.xsl" |
|---|
| 6 | |
|---|
| 7 | echo |
|---|
| 8 | echo This script converts all .xml files in the current directory to .pdf |
|---|
| 9 | echo files applying the XSLT transformation defined in the $XSLT file |
|---|
| 10 | echo using the Apache FOP processor |
|---|
| 11 | echo |
|---|
| 12 | |
|---|
| 13 | foreach file (*.xml) |
|---|
| 14 | echo converting $file |
|---|
| 15 | name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" |
|---|
| 16 | eval sh $FOP_PATH/fop.sh -xsl $XSLT -xml $file -pdf $name.pdf |
|---|
| 17 | end |
|---|
| 18 | |
|---|
| 19 | echo |
|---|
| 20 | echo conversion done |
|---|
| 21 | echo |
|---|