mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
82e678362f
svn path=/nixpkgs/trunk/; revision=4335
23 lines
370 B
Bash
Executable file
23 lines
370 B
Bash
Executable file
source $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
|