Project

General

Profile

« Previous | Next » 

Revision 12964

lib/runscripts/util.run: support conventional main() method as well as `all` target

View differences:

trunk/lib/runscripts/util.run
52 52
	if is_dot_script; then set -- "${include_args[@]}"
53 53
	else              eval set -- "$(reverse "${BASH_ARGV[@]}")"
54 54
	fi
55
	test $# -ge 1 || set -- all
55
	test $# -ge 1 || set -- main
56 56
	echo_cmd "$top_script" "$@"
57 57
	indent; time gateway "$@"
58 58
}
......
115 115
fallback() { echo_func; fwd "$@"; }
116 116
fi
117 117

  
118

  
119
#### `make` compatibility
120

  
121
main() { begin_target; self_make all; } # support conventional `all` target
122

  
118 123
fi

Also available in: Unified diff