nix/tests/substituter2.builder.sh
2004-06-24 12:56:24 +00:00

23 lines
294 B
Bash

# Set a PATH (!!! impure).
export PATH=/bin:/usr/bin:$PATH
mkdir $out
cat > $out/substituter <<EOF
#! /bin/sh -ex
echo \$*
case \$* in
*aaaa*)
exit 1
;;
*)
mkdir \$1
echo Foo \$3 \$4 > \$1/hello
;;
esac
EOF
chmod +x $out/substituter