svn path=/nixpkgs/trunk/; revision=1168
This commit is contained in:
Martin Bravenboer 2004-07-14 07:59:37 +00:00
parent ad8c419f15
commit c0b5981c45
2 changed files with 18 additions and 8 deletions

View File

@ -1,13 +1,25 @@
#! /bin/sh
. $stdenv/setup || exit 1 . $stdenv/setup || exit 1
version=j2re1.4.2_03
cp $src $version.bin || exit 1 cp $src $version.bin || exit 1
chmod u+x $version.bin || exit 1 chmod u+x $version.bin || exit 1
alias more=cat alias more=cat
echo "Unpacking J2RE"
yes yes | ./$version.bin || exit 1 yes yes | ./$version.bin || exit 1
mkdir $out || exit 1 mkdir $out || exit 1
echo "Moving sources to the right location"
mv $version/* $out/ || exit 1 mv $version/* $out/ || exit 1
echo "Removing files at top level"
for file in $out/*
do
if test -f $file ; then
rm $file
fi
done
rm -rf $out/docs

View File

@ -2,14 +2,12 @@
assert stdenv.system == "i686-linux"; assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
derivation { name = "j2re-1.4.2";
name = "j2re-1.4.2"; version = "j2re1.4.2_04";
system = stdenv.system;
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://java.sun.com/webapps/download/AutoDL?BundleId=9500; url = http://java.sun.com/webapps/download/AutoDL?BundleId=9562;
md5 = "b4aae3fcda73d976bd6ae6349b36a90c"; md5 = "57e31ffc32a2956e6140ceda8aa86e4e";
}; };
stdenv = stdenv;
} }