2004-07-14 09:59:37 +02:00
|
|
|
#! /bin/sh
|
2004-01-24 23:04:09 +01:00
|
|
|
|
|
|
|
. $stdenv/setup || exit 1
|
|
|
|
|
|
|
|
cp $src $version.bin || exit 1
|
|
|
|
chmod u+x $version.bin || exit 1
|
|
|
|
|
|
|
|
alias more=cat
|
|
|
|
|
2004-07-14 09:59:37 +02:00
|
|
|
echo "Unpacking J2RE"
|
2004-01-24 23:04:09 +01:00
|
|
|
yes yes | ./$version.bin || exit 1
|
|
|
|
|
|
|
|
mkdir $out || exit 1
|
2004-07-14 09:59:37 +02:00
|
|
|
|
|
|
|
echo "Moving sources to the right location"
|
2004-01-24 23:04:09 +01:00
|
|
|
mv $version/* $out/ || exit 1
|
2004-07-14 09:59:37 +02:00
|
|
|
|
|
|
|
echo "Removing files at top level"
|
|
|
|
for file in $out/*
|
|
|
|
do
|
|
|
|
if test -f $file ; then
|
|
|
|
rm $file
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
rm -rf $out/docs
|