Revision 12982
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/runscripts/util.run | ||
---|---|---|
77 | 77 |
wrap_fn="$top_script" # usage: sudo "$wrap_fn" fn ... |
78 | 78 |
|
79 | 79 |
# usage: to_top_file cmd... |
80 |
function to_top_file() { echo_func; stdout="$top_file" to_file "$@"; } |
|
80 |
function to_top_file() |
|
81 |
{ |
|
82 |
echo_func |
|
83 |
stdout="$top_file" if_not_exists="$(bool! "$_remake")" to_file "$@" |
|
84 |
} |
|
81 | 85 |
alias to_top_file='"to_top_file" ' # last space alias-expands next word |
82 | 86 |
|
83 | 87 |
,() # usage: .../run , cmd1 cmd2 ... (like `make cmd1 cmd2 ...`) |
Also available in: Unified diff
fix: lib/runscripts/util.run: to_top_file(): handle $_remake properly, without requiring deferred_check_target_exists to set to_file()'s flags