openbsd-ports/devel/jdk/1.4/patches/patch-bin_bootscript
kurt 9a7dc09e56 - Initial import of jdk-1.4.2
Version 1.4.2 of Java 2 Platform, Standard Edition (J2SE)

with help from many; ok naddy@ espie@
2004-12-21 04:01:05 +00:00

32 lines
624 B
Plaintext

$OpenBSD: patch-bin_bootscript,v 1.1.1.1 2004/12/21 04:01:05 kurt Exp $
--- bin/bootscript.orig Fri Dec 10 10:26:12 2004
+++ bin/bootscript Fri Dec 10 10:26:02 2004
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# this makes sure the sanity check passes
+case $1 in
+ -version)
+ echo 'java version "1.4.2"'
+ exit 0
+ ;;
+esac;
+
+progname=`basename $0`
+
+case $progname in
+ jar)
+ exec $ALT_BOOTDIR2/bin/jar "$@"
+ ;;
+ java|javac)
+ # for hotspot case only use
+ # java/javac in ALT_BOOTDIR2
+ case $* in
+ *hotspot*)
+ exec $ALT_BOOTDIR2/bin/$progname "$@"
+ ;;
+ esac;
+esac;
+
+exit 0