#! /bin/sh

# This unix script bootstraps the JSR14 prototype compiler, producing newjavac.jar
# Run it from the top level of your JSR14 installation.  You must have set the
# environment variable J2SE14 to point to the top of a J2SE 1.4.1 installation.

JSR14DISTR=`pwd`
export JSR14DISTR

mkdir -p newrt
sh -x ${JSR14DISTR}/scripts/javac -g -d newrt -sourcepath src `find src -name \*.java -print`
( cd > /dev/null src ; tar cf - `find . -name \*properties -print` ) | ( cd > /dev/null newrt ; tar xf - )
cd newrt
${J2SE14}/bin/jar cf ../newrt.jar *
cd ..
rm -rf newrt
