licensing update to APSL 2.0
[org.ibex.gcclass.git] / jdk11-check.sh
1 #!/bin/sh
2
3 if [ ! -e jdk11-classes.zip ]; then
4         echo "You need to get classes.zip from a jdk 1.1 dist and place it" 1>&2
5         echo "in the same directory as this script named jdk11-classes.zip." 1>&2
6         echo "You can find old jdk distributions on Sun's website." 1>&2
7         exit 1
8 fi
9
10 if [ "$#" -lt 2 ]; then
11         echo "Usage: $0 classpath entrypoint 1 [... [entrypoint n]]" 1>&2
12         exit 1
13 fi
14
15 mkdir -p stripped
16
17 cp="$1"
18 shift
19 java -cp build:upstream/bcel-5.1/bcel-5.1.jar \
20         com.brian_web.gcclass.GCClass \
21         "=jdk11-classes.zip:$cp" stripped "$@"
22