Project

General

Profile

« Previous | Next » 

Revision 5056

input.Makefile: Staging tables installation: %/install: Support custom postprocess.sql which specifies commands to run after the table is imported

View differences:

inputs/input.Makefile
223 223

  
224 224
%/install: _always
225 225
	$(if $(isRef),$(exportHeader),$(if $(nonXml),$(import_install_)))
226
	$(if $(wildcard $*/postprocess.sql),($(inDatasrc); cat $*/postprocess.sql;)\
227
|"time" $(psqlAsBien) --echo-all --set=table='"$*"' $(logInstall*Add))
226 228
import_install_ = (prefix=; . $(bin)/vegbien_dest; "time" nice -n +5\
227 229
env schema=$(datasrc) table=$* $(bin)/csv2db $(catSrcs) $(logInstall*))
228 230

  

Also available in: Unified diff