Project

General

Profile

« Previous | Next » 

Revision 10272

lib/runscripts/util.run: added , function, which treats each of the command-line args as commands the way make does (instead of as args to the same command, the way runscripts do)

View differences:

util.run
49 49

  
50 50
#### utils
51 51

  
52
,() # usage: .../run , cmd1 cmd2 ... (like `make cmd1 cmd2 ...`)
53
# treats each of the command-line args as commands the way make does
54
# (instead of as args to the same command, the way runscripts do)
55
{ echo_func; for cmd in "$@"; do time echo_run "$cmd"; done; }
56

  
52 57
fwd() # usage: subdirs=(...); fwd "$FUNCNAME" "$@"
53 58
{
54 59
	echo_func

Also available in: Unified diff