Revision 11802
Added by Aaron Marcuse-Kubitza about 11 years ago
inputs/input.Makefile | ||
---|---|---|
299 | 299 |
|
300 | 300 |
# For staging tables which are derived by joining together other staging tables. |
301 | 301 |
%/install: %/create.sql _always |
302 |
($(inDatasrc); echo 'CREATE TABLE "$*" AS'; cat $<; echo ';')|"time" \ |
|
302 |
set -o pipefail; \ |
|
303 |
($(inDatasrc); echo 'CREATE TABLE "$*" AS'; cat $<; echo ';')|"time" \ |
|
303 | 304 |
$(psqlNoSearchPath) --echo-all --set=schema='"$(datasrc)"' --set=table='"$*"' \ |
304 | 305 |
$(logInstall*) |
305 | 306 |
$(selfMake) "$*/postprocess" |
Also available in: Unified diff
bugfix: inputs/input.Makefile: `%/install: %/create.sql`: errexit the command so that errors won't scroll by, which in this case requires `set -o pipefail`