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