c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
15 lines
251 B
Bash
15 lines
251 B
Bash
source $stdenv/setup
|
|
|
|
mkdir -p $out/jars
|
|
unzip -j $src '*/trang.jar'
|
|
cp -p *.jar $out/jars
|
|
|
|
mkdir -p $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
|