jdk11 check script
authorbrian <brian@brianweb.net>
Thu, 27 May 2004 13:15:39 +0000 (13:15 +0000)
committerbrian <brian@brianweb.net>
Thu, 27 May 2004 13:15:39 +0000 (13:15 +0000)
darcs-hash:20040527131539-24bed-7b8744e09c24b48109ed5662a4c673484070597f.gz

jdk11-check.sh [new file with mode: 0755]

diff --git a/jdk11-check.sh b/jdk11-check.sh
new file mode 100755 (executable)
index 0000000..b460893
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ ! -e jdk11-classes.zip ]; then
+       echo "You need to get classes.zip from a jdk 1.1 dist and place it" 1>&2
+       echo "in the same directory as this script named jdk11-classes.zip." 1>&2
+       echo "You can find old jdk distributions on Sun's website." 1>&2
+       exit 1
+fi
+
+if [ "$#" -lt 2 ]; then
+       echo "Usage: $0 classpath entrypoint 1 [... [entrypoint n]]" 1>&2
+       exit 1
+fi
+
+mkdir -p stripped
+
+cp="$1"
+shift
+java -cp build:upstream/bcel-5.1/bcel-5.1.jar \
+       com.brian_web.gcclass.GCClass \
+       "=jdk11-classes.zip:$cp" stripped "$@"
+