|
Revision 1513, 0.8 KB
(checked in by pmoura, 4 years ago)
|
|
Updated release number to 2.21.1.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | ## ================================================================= |
|---|
| 4 | ## Logtalk - Object oriented extension to Prolog |
|---|
| 5 | ## Release 2.21.1 |
|---|
| 6 | ## |
|---|
| 7 | ## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. |
|---|
| 8 | ## ================================================================= |
|---|
| 9 | |
|---|
| 10 | FOP_PATH="/Applications/XML/fop-0.20.5" |
|---|
| 11 | # FOP_PATH="/usr/local/fop-0.20.5" |
|---|
| 12 | |
|---|
| 13 | XSLT="lgtpdfa4.xsl" |
|---|
| 14 | # XSLT="lgtpdfus.xsl" |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | echo |
|---|
| 18 | echo This script converts all .xml files in the current directory to .pdf |
|---|
| 19 | echo files applying the XSLT transformation defined in the $XSLT file |
|---|
| 20 | echo using the Apache FOP processor |
|---|
| 21 | echo |
|---|
| 22 | |
|---|
| 23 | for file in *.xml; do |
|---|
| 24 | echo converting $file |
|---|
| 25 | name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" |
|---|
| 26 | eval sh $FOP_PATH/fop.sh -q -xsl $XSLT -xml $file -pdf $name.pdf |
|---|
| 27 | done |
|---|
| 28 | |
|---|
| 29 | echo |
|---|
| 30 | echo conversion done |
|---|
| 31 | echo |
|---|