This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: please try out the Kawa binary pre-release
- From: "Sudarshan S Chawathe" <chaw at eip10 dot org>
- To: Per Bothner <per at bothner dot com>
- Cc: Kawa mailing list <kawa at sourceware dot org>
- Date: Thu, 03 Nov 2016 04:58:26 -0400
- Subject: Re: please try out the Kawa binary pre-release
- Authentication-results: sourceware.org; auth=none
- Reply-to: "Sudarshan S Chawathe" <chaw at eip10 dot org>
I noticed a minor problem: The automatic CLASSPATH-setting code in the
'kawa' shell script does not do the intended (I think) thing when that
shell script is invoked as "./kawa" (leading to an error "Could not find
or load main class kawa.repl). I believe a small change to the sed
command in the kawa script does the trick:
kawadir=`echo "$thisdir" | sed -e 's|/bin\(/.\)*$||'`
Perhaps it is safe to replace the '*' with a '?', but the above will
cover the case of multiple trailing './' substrings if they somehow
appear. I am including a context diff below for completeness sake.
Regards,
-chaw
*** kawa-2.1.91/bin/kawa 2016-11-03 04:48:26.773976949 -0400
--- kawa-2.1.91/bin/kawa.orig 2016-11-02 15:02:26.000000000 -0400
***************
*** 5,15 ****
/*) ;;
*) thisfile="$PWD/$thisfile" ;;
esac
while test -L "$thisfile"; do thisfile=$(readlink -f "$thisfile"); done
thisdir=`dirname "$thisfile"`
! kawadir=`echo "$thisdir" | sed -e 's|/bin\(/.\)*$||'`
if [ "$#" -eq 0 ]
then
command_line="$0"
else
command_line="$0 $*"
--- 5,15 ----
/*) ;;
*) thisfile="$PWD/$thisfile" ;;
esac
while test -L "$thisfile"; do thisfile=$(readlink -f "$thisfile"); done
thisdir=`dirname "$thisfile"`
! kawadir=`echo "$thisdir" | sed -e 's|/bin$||'`
if [ "$#" -eq 0 ]
then
command_line="$0"
else
command_line="$0 $*"