@@ -20,7 +20,7 @@ e end: # stop app
20
20
echo "stop app"
21
21
t test: # run all tests or specific test [vars: name]
22
22
[[ -n \$ (1) ]] && echo "run test \$ (1)" || echo "run test all"
23
- tests: # run multiple tests [vars: names ]
23
+ tests: # run multiple tests [vars: name1, name2, etc. ]
24
24
echo "run tests \$ (@)"
25
25
r repl: # start shell in project environment [vars: env='']
26
26
echo "start shell in project environment: \$ (env)"
@@ -37,7 +37,7 @@ e end: # stop app
37
37
t test: # run all tests or specific test [vars: name]
38
38
[[ -n \$ (1) ]] && echo "run test \$ (1)" || echo "run test all"
39
39
40
- tests: # run multiple tests [vars: names ]
40
+ tests: # run multiple tests [vars: name1, name2, etc. ]
41
41
echo "run tests \$ (@)"
42
42
43
43
r repl: # start shell in project environment [vars: env='']
@@ -105,7 +105,7 @@ function cd-to-nearest-file() { local lower='' upper='' title=''
105
105
}
106
106
107
107
function main() ( set -euo pipefail
108
- local makefile='' buffer='' at='' ws='' rewrite='' cmd=''
108
+ local makefile='' buffer='' at='' rewrite='' cmd=''
109
109
local arg='' make_args=() cmd_args=() pos_args=() pos_arg_idx=0
110
110
111
111
# Handle various optional actions:
@@ -124,7 +124,6 @@ function main() ( set -euo pipefail
124
124
# Local values:
125
125
makefile="$( mktemp ) " # Temporary makefile which we will pass to make.
126
126
at="@" # @-prefix causes make to execute commands silently.
127
- args=() # Arguments that will be passed on to invoked run command.
128
127
129
128
# Existing Makefile Compatibility:
130
129
# If 'run cmd' or 'make cmd' appears within another command in a Runfile,
@@ -239,10 +238,10 @@ EOF
239
238
else
240
239
if grep -qE '\$ \([@0-9]\)' "${makefile} "
241
240
then
242
- echo ' Warning: Your runfile uses positional args $( @) $( 1) $( 2) etc.'
241
+ echo " Warning: Your runfile uses positional args \ $ (@) \ $ (1) \ $ (2) etc."
243
242
echo "which aren't compatible with Make. You'll need to update these"
244
- echo ' commands to accept standard Make-style named arguments:'
245
- echo ' $( abc) in your Makefile, passed to task as: $ make task abc=xyz'
243
+ echo " commands to accept standard Make-style named arguments:"
244
+ echo " \ $ (abc) in your Makefile, passed to task as: $ make task abc=xyz"
246
245
echo
247
246
fi
248
247
print-makefile "${makefile} " > ./Makefile
0 commit comments