summary refs log tree commit diff
path: root/pkgs/development/compilers/blackdown/builder.sh
blob: e44a7d4af9426336e8dec931c9fcc73e098f7958 (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
26
set -e

. $stdenv/setup

cp $src .
bin=`basename $src`
chmod u+x $bin

# 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

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