Subject: Re: FreeBSD JDK 1.1.5
To: Scott Telford <st@epcc.ed.ac.uk>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-i386
Date: 01/14/1998 09:43:10
On Wed, 14 Jan 1998 11:55:50 +0000 (GMT)
Scott Telford <st@epcc.ed.ac.uk> wrote:
> The .java_wrapper script seems to be the stock Sun one - the following
> hack is needed to get it running on {Free,Net}BSD:
NetBSD has a /bin/ksh ... so that script should work as-is.
>
> --- bin/.java_wrapper_dist Mon Dec 29 06:38:45 1997
> +++ bin/.java_wrapper Tue Jan 13 22:40:14 1998
> @@ -1,4 +1,4 @@
> -#! /bin/ksh
> +#! /bin/sh
> #
> # @(#)java_wrapper.sh 1.31 97/09/02
> #
> @@ -8,7 +8,7 @@
>
> # Set up default variable values if not supplied by the user.
>
> -PRG=`whence $0` >/dev/null 2>&1
> +PRG=`which $0` >/dev/null 2>&1
> J_HOME=`dirname $PRG`/..
> progname=`basename $0`
>
> @@ -27,7 +27,7 @@
>
> DEFAULT_THREADS_FLAG=green
>
> -if [[ ${THREADS_FLAG:-${DEFAULT_THREADS_FLAG}} = native ]] ; then
> +if [ ${THREADS_FLAG:-${DEFAULT_THREADS_FLAG}} = native ] ; then
> THREADS_TYPE=native_threads
> else
> THREADS_TYPE=green_threads
>
> --
> Scott Telford "Eventually we will realise that
> Edinburgh Parallel Computing Centre computers are dangerously
> University of Edinburgh, EH9 3JZ, UK. unreliable and should be banned."
> s.telford@ed.ac.uk +44 131 650 5978 - Auberon Waugh
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-6 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 415 428 6939