2004-06-24 12:56:24 +00:00
|
|
|
# Set a PATH (!!! impure).
|
|
|
|
export PATH=/bin:/usr/bin:$PATH
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
|
|
|
|
cat > $out/substituter <<EOF
|
|
|
|
#! /bin/sh -ex
|
|
|
|
echo \$*
|
|
|
|
|
|
|
|
case \$* in
|
|
|
|
*)
|
2005-01-25 13:00:12 +00:00
|
|
|
exit 1
|
2004-06-24 12:56:24 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/substituter
|
|
|
|
|