3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/jdiskreport/builder.sh
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

15 lines
240 B
Bash

source $stdenv/setup
unzip $src
mkdir -p $out/jars
mv */*.jar $out/jars
jar=$(ls $out/jars/jdiskreport-*.jar)
mkdir -p $out/bin
cat > $out/bin/jdiskreport <<EOF
#! $SHELL -e
exec $jdk/bin/java -jar $jar
EOF
chmod +x $out/bin/jdiskreport