Include some of the cartodb scripts in the extension
NOTE: this is unfinished as cartodb scripts are only referenced and not
really included
This commit is contained in:
@@ -3,13 +3,21 @@
|
||||
EXTENSION = cartodb
|
||||
EXTVERSION = 0.1
|
||||
|
||||
CDBSCRIPTS = \
|
||||
scripts-available/CDB_TableMetadata.sql \
|
||||
scripts-available/CDB_Quota.sql \
|
||||
scripts-available/CDB_TransformToWebmercator.sql \
|
||||
scripts-available/CDB_CartodbfyTable.sql \
|
||||
$(END)
|
||||
|
||||
DATA_built = $(EXTENSION)--$(EXTVERSION).sql
|
||||
#DOCS = README.md
|
||||
#REGRESS = hook_on_table_create
|
||||
DOCS = README.md
|
||||
REGRESS = test_ddl_triggers
|
||||
|
||||
PG_CONFIG = pg_config
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS)
|
||||
|
||||
$(EXTENSION)--$(EXTVERSION).sql: cartodb_hooks.sql
|
||||
cat $< | grep -v '^\(BEGIN\|END\);$$' > $@
|
||||
$(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql Makefile
|
||||
cat $(CDBSCRIPTS) | sed 's/\<public\./cartodb./g' > $@
|
||||
cat cartodb_hooks.sql >> $@
|
||||
|
||||
Reference in New Issue
Block a user