added daniels' version of the Java editor

This commit is contained in:
hdaniels
2005-06-21 18:40:22 +00:00
parent 61483017f6
commit a037c25eba
31 changed files with 6808 additions and 3 deletions

39
src/gfeditor.in Normal file
View File

@@ -0,0 +1,39 @@
#!/bin/sh
prefix=@prefix@
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
if [ ! -x "${JAVA}" ]; then
JAVA=`which java`
fi
if [ ! -x "${JAVA}" ]; then
echo "No Java VM found"
exit 1
fi
if [ ! -f "${JARFILE}" ]; then
echo "JAR file ${JARFILE} not found"
exit 1
fi
if [ ! -x "${GF}" ]; then
GF=`which gf`
fi
if [ ! -x "${GF}" ]; then
echo "gf not found"
exit 1
fi
COMMAND= ${JAVA} -jar ${JARFILE} -g $GF $*
echo ${COMMAND}
exec ${COMMAND}