2003-08-18 17:32:13 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin
|
|
|
|
|
|
|
|
mkdir $out || exit 1
|
|
|
|
mkdir $out/bin || exit 1
|
|
|
|
|
|
|
|
sed \
|
|
|
|
-e s^@OUT\@^$out^g \
|
|
|
|
< $setup > $out/setup || exit 1
|
|
|
|
|
2003-08-18 19:49:30 +02:00
|
|
|
gcc='$NIX_CC'
|
2003-08-18 17:32:13 +02:00
|
|
|
|
|
|
|
sed \
|
|
|
|
-e s^@GCC\@^$gcc^g \
|
|
|
|
< $gccwrapper > $out/bin/gcc || exit 1
|
|
|
|
chmod +x $out/bin/gcc || exit 1
|
|
|
|
|
|
|
|
ln -s gcc $out/bin/cc
|
|
|
|
|
2003-08-18 19:49:30 +02:00
|
|
|
gcc='$NIX_CXX'
|
2003-08-18 17:32:13 +02:00
|
|
|
|
|
|
|
sed \
|
2003-08-18 19:49:30 +02:00
|
|
|
-e s^@GCC\@^$gcc^g \
|
2003-08-18 17:32:13 +02:00
|
|
|
< $gccwrapper > $out/bin/g++ || exit 1
|
|
|
|
chmod +x $out/bin/g++ || exit 1
|
|
|
|
|
|
|
|
ln -s g++ $out/bin/c++
|