patch-bin_tr 539 B

123456789101112131415161718192021
  1. $OpenBSD: patch-bin_tr,v 1.2 2008/06/14 16:48:22 sturm Exp $
  2. --- bin/tr.orig Sat May 31 03:33:36 2008
  3. +++ bin/tr Sun Jun 1 22:04:29 2008
  4. @@ -16,8 +16,14 @@ while [ -h "$PRG" ]; do
  5. fi
  6. done
  7. -progdir=`dirname "$PRG"`
  8. -APPNAME=`basename "$0"`
  9. +# progdir is always used as $progdir/..
  10. +progdir=${LOCALBASE}/share/thinkingrock/etc
  11. +
  12. +JAVA_HOME=`javaPathHelper -h thinkingrock`
  13. +jdkhome=$JAVA_HOME
  14. +export PATH=$JAVA_HOME/bin:$PATH
  15. +
  16. +APPNAME=tr
  17. if [ -f "$progdir/../etc/$APPNAME".conf ] ; then
  18. . "$progdir/../etc/$APPNAME".conf