nixpkgs/pkgs/stdenv-linux/stdenv-build.sh
Eelco Dolstra eaadea1e2a * Initialise the PATH immediately at the start of stdenv-linux, otherwise
baseenv won't work properly (because it can't find programs such as `cat').

svn path=/nixpkgs/trunk/; revision=331
2003-08-20 11:13:13 +00:00

32 lines
436 B
Bash
Executable file

#! /bin/sh
export PATH=/bin:/usr/bin
mkdir $out || exit 1
p=
first=1
for i in $tools; do
if test "$first" == 1; then
first=
else
p=$p:
fi
p=$p$i/bin
done
cc=$gcc/bin/gcc
cxx=$gcc/bin/g++
shell=$shell/bin/sh
echo "########## $p"
sed \
-e s^@GLIBC\@^$glibc^g \
-e s^@CC\@^$cc^g \
-e s^@CXX\@^$cxx^g \
-e s^@BASEENV\@^$baseenv^g \
-e s^@PATH\@^$p^g \
-e s^@SHELL\@^$shell^g \
< $setup > $out/setup || exit 1