summary refs log tree commit diff
path: root/pkgs/development/interpreters/jre/builder.sh
blob: 98d5156fabe89fc0279be5646a74afa904c5a73b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh

. $stdenv/setup || exit 1

cp $src $version.bin || exit 1
chmod u+x $version.bin || exit 1

alias more=cat

echo "Unpacking J2RE"
yes yes | ./$version.bin || exit 1

mkdir $out || exit 1

echo "Moving sources to the right location"
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