2005-10-08 01:02:58 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
unzip $src
|
|
|
|
|
2012-11-08 15:18:09 +01:00
|
|
|
jar=$(ls */*.jar)
|
|
|
|
|
|
|
|
mkdir -p $out/lib/java
|
|
|
|
mv $jar $out/lib/java
|
2005-10-08 01:02:58 +02:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2005-10-08 01:02:58 +02:00
|
|
|
cat > $out/bin/jdiskreport <<EOF
|
|
|
|
#! $SHELL -e
|
2012-11-08 15:18:09 +01:00
|
|
|
exec $jre/bin/java -jar $out/lib/java/$(basename $jar)
|
2005-10-08 01:02:58 +02:00
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/jdiskreport
|