Revision 9836
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/runscripts/table.run | ||
---|---|---|
52 | 52 |
if test -e "$file"; then psql "$@"; fi |
53 | 53 |
} |
54 | 54 |
|
55 |
load_data_first_run() # WARNING: clobbers the install log |
|
55 |
install_log="$top_dir"/logs/install.log.sql |
|
56 |
|
|
57 |
load_data() |
|
56 | 58 |
{ |
57 | 59 |
echo_func |
58 |
verbosity_min=3 table_make ${remake:+re}install # just the table |
|
59 |
# install logs require verbose output |
|
60 |
local verbosity_min=3 # install logs require verbose output |
|
61 |
set -- table_make ${remake:+re}install # just the table |
|
62 |
if test -e "$install_log"; then benign_error=1 noclobber=1 "$@" || true |
|
63 |
else "$@" # install log doesn't exist, so OK to clobber it |
|
64 |
fi |
|
60 | 65 |
} |
61 | 66 |
|
62 |
load_data() { benign_error=1 noclobber=1 load_data_first_run "$@" || true; } |
|
63 |
|
|
64 | 67 |
import() |
65 | 68 |
{ |
66 | 69 |
echo_func |
Also available in: Unified diff
lib/runscripts/table.run: load_data(): automatically select noclobber mode depending on whether the install log already exists. this removes the need for a separate load_data_first_run() function.