aboutsummaryrefslogtreecommitdiffstats
path: root/fop.sh
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2002-11-30 08:54:26 +0000
committerWilliam Victor Mote <vmote@apache.org>2002-11-30 08:54:26 +0000
commit701271c9574a3af46c3b870e01fe1df8f234573e (patch)
treec7b391991bf869213e3ca0b28e6a86d8fbf40178 /fop.sh
parent64b3c5ede295343029ded69bb7f035ddd47409f3 (diff)
downloadxmlgraphics-fop-701271c9574a3af46c3b870e01fe1df8f234573e.tar.gz
xmlgraphics-fop-701271c9574a3af46c3b870e01fe1df8f234573e.zip
white-space and line-ending fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195685 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop.sh')
-rwxr-xr-xfop.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/fop.sh b/fop.sh
index 2bbf32ca8..3df6b10fd 100755
--- a/fop.sh
+++ b/fop.sh
@@ -2,7 +2,7 @@
#
# Shell script to run FOP, adapted from the Jakarta-Ant project.
-if [ -f $HOME/.foprc ] ; then
+if [ -f $HOME/.foprc ] ; then
. $HOME/.foprc
fi
@@ -16,28 +16,28 @@ esac
if [ -z "$FOP_HOME" ] ; then
# try to find FOP
- if [ -d /opt/fop ] ; then
+ if [ -d /opt/fop ] ; then
FOP_HOME=/opt/fop
fi
- if [ -d ${HOME}/opt/fop ] ; then
+ if [ -d ${HOME}/opt/fop ] ; then
FOP_HOME=${HOME}/opt/fop
fi
## resolve links - $0 may be a link to fop's home
PRG=$0
progname=`basename $0`
-
+
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
- PRG="$link"
+ PRG="$link"
else
- PRG="`dirname $PRG`/$link"
+ PRG="`dirname $PRG`/$link"
fi
done
-
+
FOP_HOME=`dirname "$PRG"`
fi
@@ -52,9 +52,9 @@ if $cygwin ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
-if [ -z "$JAVACMD" ] ; then
+if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
@@ -64,7 +64,7 @@ if [ -z "$JAVACMD" ] ; then
JAVACMD=java
fi
fi
-
+
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly."
echo " We cannot execute $JAVACMD"