diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-16 02:01:32 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-16 02:01:32 -0700 |
| commit | 142c5870a9b6ba6f4d7af7bbdf46a72c22ee2983 (patch) | |
| tree | dbc27bfbd749c8f9e3fc5eb80e343075f4ab2c28 /setup.rc | |
| parent | 0d95b9f263eb220e3c7438528c435e1d261cb783 (diff) | |
Use the name "oldcwd" for previous working directory
Diffstat (limited to 'setup.rc')
| -rwxr-xr-x | setup.rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,14 +45,14 @@ fn gen { set outdir $outdir } - ifs=() { old_pwd=`{pwd | head -c -1} } + ifs=() { oldcwd=`{pwd | head -c -1} } . ./gen.rc build 'phony/$srcdir/gen' phony '$srcdir'/local.ninja $gen_inputs build '$srcdir'/local.ninja gen '|' setup.rc ninja.rc '$srcdir'/gen.rc if(! ~ $#tree_perms 0) { - printf '%s\n' $tree_perms >$old_pwd/local.perms + printf '%s\n' $tree_perms >$oldcwd/local.perms perms_inputs=( $perms_inputs '$srcdir'/local.perms ) } if(~ $#perms_inputs 0) build '$outdir/root.perms' stamp |
