OILS / demo / demo.ninja View on Github | oilshell.org

17 lines, 13 significant
1empty =
2sq = ''
3spaces = foo bar
4
5rule argv
6 command = spec/bin/argv.py $out $empty $in $sq $spaces
7
8# The whole thing is a big shell string
9# So this uses shell quoting rules
10#
11# It's a bit like
12# mystr="spec/bin/argv.py $out $in $sq $spaces"
13# $mystr
14
15# we get ['_tmp/out1', '_tmp/out2', '_tmp/in1', _tmp/in2, '', 'foo', 'bar']
16
17build _tmp/out1 _tmp/out2: argv _tmp/in1 _tmp/in2