Revision 12967
Added by Aaron Marcuse-Kubitza almost 11 years ago
make.sh | ||
---|---|---|
38 | 38 |
# its previous value |
39 | 39 |
alias remaking='test "$_remake"' |
40 | 40 |
|
41 |
# usage: set_make_vars; ...; self_make overridden_target... # progagates $remake
|
|
42 |
function self_make() { remake="$_remake" "$@"; }
|
|
43 |
alias self_make='"self_make" ' # last space alias-expands next word
|
|
41 |
# usage: set_make_vars; ...; with_rm target ... # progagates $rm/$remake
|
|
42 |
function with_rm() { remake="$_remake" "$@"; }
|
|
43 |
alias with_rm='"with_rm" ' # last space alias-expands next word
|
|
44 | 44 |
|
45 | 45 |
# usage: set_make_vars; check_target_exists |
46 | 46 |
alias check_target_exists='remaking || require_not_exists "$target" || return 0' |
Also available in: Unified diff
lib/sh/make.sh: self_make(): renamed to with_rm() for clarity, since this is used only to progagate $rm, and does not also invoke a command with the same name as the current function, as the name might suggest