Project

General

Profile

« Previous | Next » 

Revision 9271

*{.sh,run}: put doc comment on next line when possible, so that the function name always comes before it

View differences:

util.sh
449 449
require_not_exists() # usage: require_not_exists file || return 0
450 450
{ test ! -e "$1" || type=info die "file "$1" already exists, skipping"; }
451 451

  
452
function to_file() # usage: stdout=... [if_not_exists=1] to_file cmd...
452 453
# auto-removes a command's output file on error (like make's .DELETE_ON_ERROR)
453
function to_file() # usage: stdout=... [if_not_exists=1] to_file cmd...
454 454
{
455 455
	echo_func; kw_params stdout
456 456
	: "${stdout?}"

Also available in: Unified diff