jdk11 check script
[org.ibex.gcclass.git] / jdk11-check.sh
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 "$@"
+