2004-08-24 11:12:01 +02:00
|
|
|
set -e
|
|
|
|
|
2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-08-24 11:12:01 +02:00
|
|
|
|
|
|
|
cp $src .
|
|
|
|
bin=`basename $src`
|
|
|
|
chmod u+x $bin
|
|
|
|
|
2004-09-21 17:27:43 +02:00
|
|
|
# This is required because those GNU coreutils fuckers suddenly
|
|
|
|
# removed the `+N' syntax (due to a misguided desire for "standards
|
|
|
|
# compliance"), which the Blackdown installer uses.
|
|
|
|
export _POSIX2_VERSION=199209
|
|
|
|
|
2004-08-24 11:12:01 +02:00
|
|
|
alias more=cat
|
|
|
|
yes yes | ./$bin
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
mv $dirname/* $out/
|
|
|
|
|
|
|
|
# remove crap in the root directory
|
|
|
|
for file in $out/*
|
|
|
|
do
|
|
|
|
if test -f $file ; then
|
|
|
|
rm $file
|
|
|
|
fi
|
|
|
|
done
|