nixpkgs/pkgs/tools/text/xml/jing/unzip-builder.sh
Bjørn Forsman 3f928466df jing-trang: update to version 20091111
Also add meta attributes and a wrapper for jing so that it can be
invoked directly from the shell as "jing" (similar to Debian/Ubuntu).
Trang already has such a wrapper.
2013-08-22 22:00:33 +02:00

15 lines
227 B
Bash
Executable file

set -e
source $stdenv/setup
$unzip/bin/unzip $src
mkdir -p $out
mv $name/* $out
cat > "$out/bin/jing" <<EOF
#! $SHELL
export JAVA_HOME="$jre"
exec "$jre/bin/java" -jar "$out/bin/jing.jar" "\$@"
EOF
chmod a+x "$out/bin/jing"