2003-07-24 17:15:48 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin
|
|
|
|
|
|
|
|
mkdir $out || exit 1
|
|
|
|
|
2003-08-19 12:40:54 +02:00
|
|
|
p=
|
|
|
|
first=1
|
2003-08-27 14:37:38 +02:00
|
|
|
for i in $tools $gcc $binutils $shell; do
|
2003-08-19 12:40:54 +02:00
|
|
|
if test "$first" == 1; then
|
|
|
|
first=
|
|
|
|
else
|
|
|
|
p=$p:
|
|
|
|
fi
|
|
|
|
p=$p$i/bin
|
|
|
|
done
|
2003-08-18 19:49:30 +02:00
|
|
|
|
2003-08-19 12:40:54 +02:00
|
|
|
cc=$gcc/bin/gcc
|
|
|
|
cxx=$gcc/bin/g++
|
2003-08-27 14:37:38 +02:00
|
|
|
ld=$binutils/bin/ld
|
2003-08-19 12:40:54 +02:00
|
|
|
shell=$shell/bin/sh
|
2003-08-18 18:33:38 +02:00
|
|
|
|
|
|
|
echo "########## $p"
|
|
|
|
|
2003-07-24 17:15:48 +02:00
|
|
|
sed \
|
2003-08-18 17:32:13 +02:00
|
|
|
-e s^@GLIBC\@^$glibc^g \
|
2003-08-26 17:25:26 +02:00
|
|
|
-e s^@LINUX\@^$linux^g \
|
2003-08-22 15:42:21 +02:00
|
|
|
-e s^@GCC\@^$gcc^g \
|
2003-08-18 19:49:30 +02:00
|
|
|
-e s^@CC\@^$cc^g \
|
|
|
|
-e s^@CXX\@^$cxx^g \
|
2003-08-27 14:37:38 +02:00
|
|
|
-e s^@LD\@^$ld^g \
|
2003-08-18 17:32:13 +02:00
|
|
|
-e s^@BASEENV\@^$baseenv^g \
|
2003-08-18 18:33:38 +02:00
|
|
|
-e s^@PATH\@^$p^g \
|
2003-08-19 12:40:54 +02:00
|
|
|
-e s^@SHELL\@^$shell^g \
|
2003-08-18 17:32:13 +02:00
|
|
|
< $setup > $out/setup || exit 1
|