root/tags/lgt2211/xml/pdf.sh

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
10FOP_PATH="/Applications/XML/fop-0.20.5"
11# FOP_PATH="/usr/local/fop-0.20.5"
12
13XSLT="lgtpdfa4.xsl"
14# XSLT="lgtpdfus.xsl"
15
16
17echo
18echo This script converts all .xml files in the current directory to .pdf
19echo files applying the XSLT transformation defined in the $XSLT file
20echo using the Apache FOP processor
21echo
22
23for 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
27done
28
29echo
30echo conversion done
31echo
Note: See TracBrowser for help on using the browser.