Project

General

Profile

« Previous | Next » 

Revision 9834

lib/runscripts/table.run: load_data(): use noclobber=1 to avoid overwriting the install log when re-running the install target idempotently. load_data_first_run() is now available to preserve the output in the log on the first run.

View differences:

lib/runscripts/table.run
52 52
	if test -e "$file"; then psql "$@"; fi
53 53
}
54 54

  
55
load_data()
55
load_data_first_run() # WARNING: clobbers the install log
56 56
{
57 57
	echo_func
58 58
	verbosity_min=3 table_make ${remake:+re}install # just the table
59 59
		# install logs require verbose output
60 60
}
61 61

  
62
load_data() { noclobber=1 load_data_first_run "$@"; }
63

  
62 64
import()
63 65
{
64 66
	echo_func

Also available in: Unified diff