Fixed shell scripts for java apps to use windows paths instead of cygwin paths.

This commit is contained in:
bringert
2005-07-20 10:34:04 +00:00
parent c970c6b0c0
commit 949249fe74
3 changed files with 39 additions and 32 deletions

View File

@@ -1,26 +1,32 @@
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
GF_BIN_DIR=@bindir@
GF_DATA_DIR=@datadir@/GF-@PACKAGE_VERSION@
prefix="@prefix@"
case "@host@" in
*-cygwin)
prefix=`cygpath -w "$prefix"`;;
esac
exec_prefix="@exec_prefix@"
GF_BIN_DIR="@bindir@"
GF_DATA_DIR="@datadir@/GF-@PACKAGE_VERSION@"
JAVA="@JAVA@"
GF=$GF_BIN_DIR/gf
JARFILE=$GF_DATA_DIR/gfeditor.jar
GF="$GF_BIN_DIR/gf"
JARFILE="$GF_DATA_DIR/gfeditor.jar"
if [ ! -x "${JAVA}" ]; then
JAVA=`which java`
fi
if [ ! -x "${JAVA}" ]; then
echo "No Java VM found"
echo "No Java VM found."
exit 1
fi
if [ ! -f "${JARFILE}" ]; then
echo "JAR file ${JARFILE} not found"
if [ ! -r "${JARFILE}" ]; then
echo "Cannot read JAR file ${JARFILE}."
exit 1
fi
@@ -29,11 +35,8 @@ if [ ! -x "${GF}" ]; then
fi
if [ ! -x "${GF}" ]; then
echo "gf not found"
echo "GF not found."
exit 1
fi
COMMAND= ${JAVA} -jar ${JARFILE} -g $GF $*
echo ${COMMAND}
exec ${COMMAND}
exec "${JAVA}" -jar "${JARFILE}" -g "${GF}" $*