Revision 4453
Added by Aaron Marcuse-Kubitza about 12 years ago
input.Makefile | ||
---|---|---|
192 | 192 |
rm_schema: _always |
193 | 193 |
echo 'DROP SCHEMA IF EXISTS "$(datasrc)" CASCADE;'|$(psqlAsBien) |
194 | 194 |
|
195 |
logInstall = $(if $(log),$(if $(quiet),&>,2>&1|tee )$*/logs/install.log.sql) |
|
196 |
|
|
195 | 197 |
# Must come before %/install to override it |
196 | 198 |
sql/install: $(dbExports) |
197 | 199 |
($(inDatasrc); cat $+|grep -vF 'SET search_path')|"time" $(psqlAsBien) |
... | ... | |
233 | 235 |
$(if $(nonXml),$(import_install_),$(if $(isRef),$(exportHeader))) |
234 | 236 |
import_install_ = (prefix=; . $(bin)/vegbien_dest; "time" nice -n +5\ |
235 | 237 |
env schema=$(datasrc) table=$* has_row_num=$(hasRowNum) $(bin)/csv2db\ |
236 |
$(catSrcs) $(if $(log),$(if $(quiet),&>,2>&1|tee )$*/logs/install.log.sql))
|
|
238 |
$(catSrcs) $(logInstall))
|
|
237 | 239 |
|
238 | 240 |
##### Maps building |
239 | 241 |
|
Also available in: Unified diff
input.Makefile: Staging tables installation: %/install: Factored out stderr logging into $(logInstall)