1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/misc/jdiskreport/builder.sh
Eelco Dolstra e0c0a344c4 * Added JDiskReport 1.2.3 (with a wrapper script `jdiskreport' to
start it).

svn path=/nixpkgs/trunk/; revision=4031
2005-10-07 23:02:58 +00:00

15 lines
242 B
Bash

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