2004-08-19 15:57:38 +02:00
|
|
|
. $stdenv/setup || exit 1
|
|
|
|
|
|
|
|
tar zxf $src || exit 1
|
2004-08-21 00:48:59 +02:00
|
|
|
cd jclasslib || exit 1
|
|
|
|
|
|
|
|
xpf-rm -i build.xml "//taskdef" > build.new
|
|
|
|
mv build.new build.xml
|
2004-08-19 15:57:38 +02:00
|
|
|
|
2004-08-21 00:48:59 +02:00
|
|
|
ant clean || exit 1
|
|
|
|
ant jar || exit 1
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv build/jclasslib.jar $out/bin/ || exit 1
|
2004-08-19 15:57:38 +02:00
|
|
|
|
|
|
|
cat >> $out/bin/jclasslib <<EOF
|
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
export JAVA_HOME=$j2re
|
|
|
|
|
|
|
|
$j2re/bin/java -jar $out/bin/jclasslib.jar \$@
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod a+x $out/bin/jclasslib || exit 1
|