f6e0983d44
* Some refactoring on stdenv-linux to prevent unnecessary rebuilds. svn path=/nixpkgs/trunk/; revision=308
30 lines
428 B
Bash
Executable file
30 lines
428 B
Bash
Executable file
#! /bin/sh
|
|
|
|
export PATH=/bin:/usr/bin
|
|
|
|
mkdir $out || exit 1
|
|
|
|
if test "$nativeTools" == 1; then
|
|
p='$PATH:/usr/local/bin:/usr/bin:/bin'
|
|
else
|
|
p=
|
|
first=1
|
|
for i in $tools; do
|
|
if test "$first" == 1; then
|
|
first=
|
|
else
|
|
p=$p:
|
|
fi
|
|
p=$p$i/bin
|
|
done
|
|
p=$p':$PATH'
|
|
fi
|
|
|
|
echo "########## $p"
|
|
|
|
sed \
|
|
-e s^@GLIBC\@^$glibc^g \
|
|
-e s^@BASEENV\@^$baseenv^g \
|
|
-e s^@PATH\@^$p^g \
|
|
< $setup > $out/setup || exit 1
|