1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
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