Compare commits
1 Commits
7a9eff94fa
...
dff42f5125
Author | SHA1 | Date | |
---|---|---|---|
dff42f5125 |
@ -165,11 +165,18 @@ EOF
|
||||
# Build then run a target residing in `~build/bin`.
|
||||
build-run() {
|
||||
local target=$1; shift 1
|
||||
eval build $target && ~build/bin/$target $*
|
||||
eval build $target && ~build/bin/$target "$@"
|
||||
}
|
||||
|
||||
# Build then debug a target residing in `~build/bin`.
|
||||
build-debug() {
|
||||
local target=$1; shift 1
|
||||
eval build $target && debug ~build/bin/$target $*
|
||||
# For each item in $* replace * and \* and then replace \ with \\
|
||||
autoload -U regexp-replace
|
||||
local args=()
|
||||
for arg in "$@"; do
|
||||
regexp-replace arg '\*' '\\*'
|
||||
args+=($arg)
|
||||
done
|
||||
eval build $target && debug ~build/bin/$target $args
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user