2004-06-24 14:56:24 +02: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 14:00:12 +01:00
|
|
|
exit 1
|
2004-06-24 14:56:24 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/substituter
|
|
|
|
|