nixpkgs/pkgs/tools/text/xml/trang/builder.sh
Eelco Dolstra 6da726d56e * Trang (tool for converting to and from RelaxNG schemas).
svn path=/nixpkgs/trunk/; revision=5579
2006-07-04 19:17:34 +00:00

16 lines
253 B
Bash

source $stdenv/setup
ensureDir $out/jars
unzip -j $src '*/trang.jar'
cp -p *.jar $out/jars
ensureDir $out/bin
cat >> $out/bin/trang <<EOF
#! $SHELL
export JAVA_HOME=$jre
exec $jre/bin/java -jar $out/jars/trang.jar "\$@"
EOF
chmod a+x $out/bin/trang