3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/j2re/j2re-sun-linux-build.sh
Martin Bravenboer 101716ac56 * fix expression and build script for sun j2re for linux.
Build script should be improved to handle to installation 
    stuff Sun is doing in their script.

svn path=/nixpkgs/trunk/; revision=260
2003-08-06 14:20:26 +00:00

16 lines
397 B
Bash
Executable file

#! /bin/sh
mkdir -p $out || exit 1
cd $out || exit 1
tail +473 $binzip > j2re.exe || exit 1
chmod u+x j2re.exe || exit 1
./j2re.exe || exit 1
rm j2re.exe || exit 1
mv j2re1.4.2/* . || exit 1
rmdir j2re1.4.2 || exit 1
PACKED_JARS="lib/rt lib/jsse lib/charsets lib/ext/localedata lib/plugin javaws/javaws"
for i in $PACKED_JARS; do
lib/unpack $i.pack $i.jar || exit 1
done