Revision 11810
Added by Aaron Marcuse-Kubitza almost 11 years ago
inputs/input.Makefile | ||
---|---|---|
275 | 275 |
$(bin)/csv2db) $(logInstall*Add)) |
276 | 276 |
|
277 | 277 |
%/header.csv: |
278 |
echo 'COPY (SELECT * FROM "$(datasrc)"."$*" LIMIT 0) TO STDOUT CSV HEADER;'|\ |
|
278 |
set -o pipefail; \ |
|
279 |
echo 'COPY (SELECT * FROM "$(datasrc)"."$*" LIMIT 0) TO STDOUT CSV HEADER;'|\ |
|
279 | 280 |
env no_search_path=1 $(bin)/psql_script_vegbien >$*/header.csv |
280 | 281 |
|
281 | 282 |
exportHeader = $(selfMake) "$*/header.csv" |
Also available in: Unified diff
bugfix: inputs/input.Makefile: %/header.csv: errexit the command so that errors won't scroll by, which in this case requires `set -o pipefail`