2006-03-26 03:21:32 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2008-04-23 07:34:20 +00:00
|
|
|
tar zxvf $src
|
2006-03-26 03:21:32 +00:00
|
|
|
|
2008-04-23 07:34:20 +00:00
|
|
|
cd abc-*
|
2006-03-26 03:21:32 +00:00
|
|
|
|
|
|
|
for p in $patches; do
|
|
|
|
echo "applying patch $p"
|
2008-04-23 07:34:20 +00:00
|
|
|
patch -p1 < $p
|
2006-03-26 03:21:32 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
cat > ant.settings <<EOF
|
|
|
|
polyglot.loc=$polyglot/jars/polyglot.jar
|
|
|
|
polyglot.cupclasses.loc=$polyglot/jars/java_cup.jar
|
|
|
|
jflex.loc=
|
|
|
|
soot.loc=$soot/jars/soot.jar
|
|
|
|
jasmin.loc=$jasmin/jars/jasmin.jar
|
|
|
|
xact.loc=$xact/jars/xact.jar
|
|
|
|
paddle.loc=$paddle/jars/paddle.jar
|
|
|
|
jedd.runtime.jar=$jedd/jars/jedd.runtime.jar
|
|
|
|
javabdd.jar=$javabdd/jars/javabdd.jar
|
|
|
|
EOF
|
|
|
|
|
|
|
|
$apacheAnt/bin/ant jars
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/jars
|
2006-03-26 03:21:32 +00:00
|
|
|
|
|
|
|
cp lib/abc.jar $out/jars
|
|
|
|
cp lib/abc-runtime.jar $out/jars
|
|
|
|
cp lib/abc-testing.jar $out/jars
|
|
|
|
cp lib/abc-complete.jar $out/jars
|
|
|
|
|
|
|
|
# Create the executable abc script
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2006-03-26 03:21:32 +00:00
|
|
|
cat > $out/bin/abc <<EOF
|
|
|
|
#! $SHELL -e
|
|
|
|
|
|
|
|
exec $jre/bin/java -classpath $out/jars/abc-complete.jar -Xmx256M -Dabc.home=$out/jars abc.main.Main \$@
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/abc
|