2006-07-04 21:17:34 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/jars
|
2006-07-04 21:17:34 +02:00
|
|
|
unzip -j $src '*/trang.jar'
|
|
|
|
cp -p *.jar $out/jars
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2006-07-04 21:17:34 +02:00
|
|
|
|
|
|
|
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
|