Project

General

Profile

« Previous | Next » 

Revision 12793

bugfix: inputs/input.Makefile: $(cleanup): need `set -o pipefail`

View differences:

input.Makefile
272 272
# $debug option runs the *.sql import verbosely, to display which statements are
273 273
# being run. this should only be used for SQL files that use COPY FROM to import
274 274
# data, to avoid echoing pages of insert statements.
275
cleanup = $(if $(wildcard $*/cleanup.sql),($(inDatasrc); cat $*/cleanup.sql)\
275
cleanup = set -o pipefail; \
276
$(if $(wildcard $*/cleanup.sql),($(inDatasrc); cat $*/cleanup.sql)\
276 277
|"time" $(psqlNoSearchPath) --echo-all --set=table='"$*"' $(logInstall*Add),\
277 278
(export schema=$(datasrc) table=$*; . $(bin)/vegbien_dest; unset schemas; \
278 279
$(bin)/csv2db) $(logInstall*Add))

Also available in: Unified diff