2006-08-15 23:25:14 +02:00
|
|
|
if test -z "$out"; then
|
|
|
|
out="$OUT"
|
|
|
|
initialPath="$INITIALPATH"
|
|
|
|
fi
|
|
|
|
|
2006-08-15 16:46:41 +02:00
|
|
|
setupPath=
|
|
|
|
for i in $initialPath; do
|
|
|
|
setupPath=$setupPath${setupPath:+:}$i
|
|
|
|
done
|
|
|
|
|
|
|
|
PATH=$setupPath
|
2006-08-15 23:25:14 +02:00
|
|
|
export PATH
|
2006-08-15 16:46:41 +02:00
|
|
|
|
|
|
|
mkdir $out
|
2006-08-15 23:25:14 +02:00
|
|
|
|
2006-08-15 16:46:41 +02:00
|
|
|
cat > $out/setup <<EOF
|
|
|
|
PATH=$setupPath
|
|
|
|
export PATH
|
|
|
|
|
|
|
|
SHELL=$shell
|
|
|
|
export SHELL
|
|
|
|
|
|
|
|
# make fetchurl usable
|
|
|
|
header() {
|
|
|
|
echo "\$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
stopNest() {
|
|
|
|
echo "Nothing to do"
|
|
|
|
}
|
|
|
|
EOF
|
2006-08-15 23:25:14 +02:00
|
|
|
|
2006-08-15 16:46:41 +02:00
|
|
|
chmod +x $out/setup
|