root/tags/lgt293/xml/pdf.sh

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
3FOP_PATH="/Applications/Fop-0.20.2"
4
5XSLT="lgtpdfa4.xsl"
6
7echo
8echo This script converts all .xml files in the current directory to .pdf
9echo files applying the XSLT transformation defined in the $XSLT file
10echo using the Apache FOP processor
11echo
12
13foreach 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
17end
18
19echo
20echo conversion done
21echo
Note: See TracBrowser for help on using the browser.