Revision 8120
Added by Aaron Marcuse-Kubitza almost 12 years ago
inputs/input.Makefile | ||
---|---|---|
243 | 243 |
$(bin)/csv2db) $(logInstall*Add)) |
244 | 244 |
|
245 | 245 |
define exportHeader |
246 |
$(cleanup) |
|
247 | 246 |
echo 'SELECT * FROM "$(datasrc)"."$*" LIMIT 0;'|env no_search_path=1\ |
248 | 247 |
$(bin)/psql_script_vegbien --no-align --field-separator=, --pset=footer=off\ |
249 | 248 |
>$*/header.csv |
249 |
$(cleanup) |
|
250 | 250 |
endef |
251 | 251 |
|
252 | 252 |
# Don't try to edit a view. Must come before %/install to override it. |
Also available in: Unified diff
inputs/input.Makefile: Staging tables installation: $(exportHeader): export the header before running $(cleanup), because the header is not affected by the data cleanup operations and thus can be generated right away, to allow mapping while the cleanup operations run