diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-12 22:34:23 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-15 02:10:08 -0700 |
| commit | 9c2e14cc8a64b62f0ee607ec924ce76a4f2a04ac (patch) | |
| tree | b324a4faffa057f48078aadcf054374d83784213 /setup.rc | |
| parent | b88023a0c8cced80c765ac47c731627e837f2652 (diff) | |
Move ninja helpers to ninja.rc
Diffstat (limited to 'setup.rc')
| -rwxr-xr-x | setup.rc | 41 |
1 files changed, 1 insertions, 40 deletions
@@ -42,46 +42,7 @@ root_outdir=$abs_outdir setup_outs=( build.ninja ) setup_ins=() -fn set { - var=$1 { - shift - printf '%s = %s\n' $var $"* - } -} - -fn let { - vars=() { - while(! ~ $1 --) { - vars=( $vars $1' = '$2 ) - shift 2 - } - shift - $* - printf ' %s\n' $vars - } -} - -fn subninja { - echo subninja $* -} - -fn include { - echo include $* -} - -fn rule { - name=$1 { - shift - let command $"* -- echo rule $name - } -} - -fn build { - out=$1 rule=$2 { - shift 2 - echo build $out: $rule $* - } -} +. ./ninja.rc fn subgen { olddir=$dir |
