Project

General

Profile

« Previous | Next » 

Revision 5186

input.Makefile: Staging tables installation: %/cleanup: Also run any custom cleanup.sql provided in the subdir. %/install: Removed processing of postprocess.sql because no datasources are using it and because cleanup.sql can now be used for this purpose.

View differences:

input.Makefile
225 225

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

  
......
236 234
# This occurs because ALTER TABLE recreates the index but not its comment.
237 235
%/cleanup: _always
238 236
	$(cleanup)
237
	$(if $(wildcard $*/cleanup.sql),($(inDatasrc); cat $*/cleanup.sql;)\
238
|"time" $(psqlAsBien) --echo-all --set=table='"$*"' $(logInstall*Add))
239 239

  
240 240
##### Maps building
241 241

  

Also available in: Unified diff