nixpkgs/pkgs/development/tools/java/jclasslib/builder.sh
Martin Bravenboer 4c70ef7e5d Cleaning up the java naming conventions
svn path=/nixpkgs/trunk/; revision=3871
2005-09-17 23:58:51 +00:00

23 lines
365 B
Bash
Executable file

. $stdenv/setup || exit 1
tar zxf $src || exit 1
cd jclasslib || exit 1
xpf-rm -f build.xml "//taskdef"
ant clean || exit 1
ant jar || exit 1
mkdir -p $out/bin
mv build/jclasslib.jar $out/bin/ || exit 1
cat >> $out/bin/jclasslib <<EOF
#! /bin/sh
export JAVA_HOME=$jre
$jre/bin/java -jar $out/bin/jclasslib.jar \$@
EOF
chmod a+x $out/bin/jclasslib || exit 1