2006-08-31 01:51:41 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
if ! test -e "$pathname"; then
|
|
|
|
echo ""
|
|
|
|
echo "SORRY!"
|
|
|
|
echo "You should download \`$(basename $pathname)' from IBM and place it in $(dirname $pathname)."
|
|
|
|
echo "Blame IBM, not us."
|
|
|
|
echo ""
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
actual=$(md5sum -b $pathname | cut -c1-32)
|
|
|
|
if test "$actual" != "$md5"; then
|
|
|
|
echo "hash is $actual, expected $md5"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
tar zxf $pathname || true
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2006-08-31 01:51:41 +00:00
|
|
|
mv $dirname/* $out/
|
|
|
|
|
|
|
|
# Remove crap in the root directory.
|
|
|
|
for file in $out/*
|
|
|
|
do
|
|
|
|
if test -f $file ; then
|
|
|
|
rm $file
|
|
|
|
fi
|
|
|
|
done
|