diff options
author | Peter Bernard West <pbwest@apache.org> | 2002-10-12 03:27:03 +0000 |
---|---|---|
committer | Peter Bernard West <pbwest@apache.org> | 2002-10-12 03:27:03 +0000 |
commit | bc1759993bf82e57ac223d7fa956d4d7e0b5bd3a (patch) | |
tree | b84a99bcf8ae14ae87d71f566eeea9adaefcb427 /bin | |
parent | 5b416ce59cc24424c3ad857adfd78b1ca4b5f16d (diff) | |
download | xmlgraphics-fop-bc1759993bf82e57ac223d7fa956d4d7e0b5bd3a.tar.gz xmlgraphics-fop-bc1759993bf82e57ac223d7fa956d4d7e0b5bd3a.zip |
Added -g flag support.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195327 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fopcomp | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/bin/fopcomp b/bin/fopcomp index c5d19a8e6..2a00f66e3 100755 --- a/bin/fopcomp +++ b/bin/fopcomp @@ -1,13 +1,23 @@ -#!/bin/ksh +#!/bin/sh function prefix { typeset path path=`pwd` expr $path : '\(.*\)src/org/apache/fop/.*' } -set -x -if [ $1 = "-j" ]; then - shift - javac -verbose -d `prefix`build/classes -sourcepath `prefix`src "$@" -else - jikes -verbose +F -d `prefix`build/classes -sourcepath `prefix`src "$@" -fi +#set -x +compiler="jikes" +until case "$1" in + -j) compiler=javac + echo Using javac + false + ;; + -g) debug="-g" + echo Debugging on + false + ;; + esac +do + shift +done + +$compiler $debug -verbose -d `prefix`build/classes -sourcepath `prefix`src "$@" |