diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-14 00:19:28 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-14 00:19:28 -0700 |
| commit | 988bafb764a1642436a075d8c632f67097cfff10 (patch) | |
| tree | 2aa4070a13aa7f22a18aa6164fddea44a69a9fee /setup.rc | |
| parent | c1dabc7822595e3192d32f90722096d5c95e6092 (diff) | |
Use empty rule rather than touch when there are no perms/tree inputs
Diffstat (limited to 'setup.rc')
| -rwxr-xr-x | setup.rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,9 +52,9 @@ fn gen { printf '%s\n' $tree_perms >$absdir/local.perms perms_inputs=($perms_inputs '$dir'/local.perms) } - if(~ $#perms_inputs 0) build '$outdir/root.perms' touch + if(~ $#perms_inputs 0) build '$outdir/root.perms' empty if not build '$outdir/root.perms' cat $perms_inputs - if(~ $#tree_inputs 0) build '$outdir/root.tree' touch + if(~ $#tree_inputs 0) build '$outdir/root.tree' empty if not build '$outdir/root.tree' cat $tree_inputs } >local.ninja.tmp mv $absdir/^(local.ninja.tmp local.ninja) |
