about summary refs log blame commit diff
path: root/tests/substituter2.builder.sh
blob: 1794500d6f6d8c89b83f9d584c88388949a53e42 (plain) (tree)





















                                    
# 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