b1d58e26f1
make this somewhat useable w/ jre 1.7.0 although there are still some icon and font problems
21 lines
539 B
Plaintext
21 lines
539 B
Plaintext
$OpenBSD: patch-bin_tr,v 1.2 2008/06/14 16:48:22 sturm Exp $
|
|
--- bin/tr.orig Sat May 31 03:33:36 2008
|
|
+++ bin/tr Sun Jun 1 22:04:29 2008
|
|
@@ -16,8 +16,14 @@ while [ -h "$PRG" ]; do
|
|
fi
|
|
done
|
|
|
|
-progdir=`dirname "$PRG"`
|
|
-APPNAME=`basename "$0"`
|
|
+# progdir is always used as $progdir/..
|
|
+progdir=${LOCALBASE}/share/thinkingrock/etc
|
|
+
|
|
+JAVA_HOME=`javaPathHelper -h thinkingrock`
|
|
+jdkhome=$JAVA_HOME
|
|
+export PATH=$JAVA_HOME/bin:$PATH
|
|
+
|
|
+APPNAME=tr
|
|
|
|
if [ -f "$progdir/../etc/$APPNAME".conf ] ; then
|
|
. "$progdir/../etc/$APPNAME".conf
|