2006-05-15 14:11:22 -04:00
|
|
|
$OpenBSD: patch-bin_bootscript,v 1.2 2006/05/15 18:11:22 ian Exp $
|
|
|
|
--- bin/bootscript.orig Thu May 11 11:29:23 2006
|
|
|
|
+++ bin/bootscript Thu May 11 11:35:16 2006
|
|
|
|
@@ -0,0 +1,27 @@
|
2006-04-28 16:56:15 -04:00
|
|
|
+#!/bin/sh
|
|
|
|
+
|
|
|
|
+# this makes sure the sanity check passes
|
|
|
|
+case $1 in
|
2006-05-15 14:11:22 -04:00
|
|
|
+ -version|-fullversion)
|
2006-04-28 16:56:15 -04:00
|
|
|
+ echo 'java version "1.4.2"'
|
|
|
|
+ exit 0
|
|
|
|
+ ;;
|
|
|
|
+esac;
|
|
|
|
+
|
|
|
|
+progname=`basename $0`
|
|
|
|
+
|
|
|
|
+case $progname in
|
|
|
|
+ jar|java|javah)
|
|
|
|
+ exec $ALT_BOOTDIR2/bin/$progname "$@"
|
|
|
|
+ ;;
|
|
|
|
+ javac)
|
|
|
|
+ # for select cases only
|
2006-05-15 14:11:22 -04:00
|
|
|
+ # use jikes
|
2006-04-28 16:56:15 -04:00
|
|
|
+ case "$*" in
|
|
|
|
+ *hotspot*|*\.\.\/tools\/*|*java\.text\/tools\/*)
|
2006-05-15 14:11:22 -04:00
|
|
|
+ exec jikes -bootclasspath $ABS_OUTPUTDIR/classes "$@"
|
2006-04-28 16:56:15 -04:00
|
|
|
+ ;;
|
|
|
|
+ esac;
|
|
|
|
+esac;
|
|
|
|
+
|
|
|
|
+exit 0
|