[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-89-g63b1fb14a
git at osgeo.org
git at osgeo.org
Wed Sep 14 05:07:33 PDT 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 63b1fb14a79f4d09776537838b5159c7750d3b57 (commit)
from d72f690f5eaa34089c10ace378712700ce9012bf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 63b1fb14a79f4d09776537838b5159c7750d3b57
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Sep 14 14:06:40 2022 +0200
Reduce processes creating sql/ dir for address_standardizer
diff --git a/extensions/address_standardizer/Makefile.in b/extensions/address_standardizer/Makefile.in
index ea980d9af..00c76155c 100644
--- a/extensions/address_standardizer/Makefile.in
+++ b/extensions/address_standardizer/Makefile.in
@@ -59,11 +59,12 @@ SHLIB_LINK = @SHLIB_LINK@ @PCRE_LDFLAGS@
EXTRA_CLEAN = sql/ usps-st-city-name.txt mk-st-regexp mk-city-regex test_main
REGRESS = test-init-extensions test-parseaddress test-standardize_address_1 test-standardize_address_2
+sql:
+ mkdir -p $@
# Borrow the $libdir substitution from PGXS but customise by running the preprocessor
# and adding the version number
-sql/%.sql: %.sql.in
- mkdir -p sql
+sql/%.sql: %.sql.in | sql
$(SQLPP) -I at buiddir@/../libpgcommon $< | grep -v '^#' | \
$(PERL) -lpe "s'MODULE_PATHNAME'\$(MODULEPATH)'g" > $@
@@ -72,18 +73,15 @@ sql/%.sql: %.sql.in
| $(PERL) -lpe "s'@EXTVERSION@'$(EXTVERSION)'g" \
> $@
-sql/address_standardizer_pre.sql: $(EXTENSION_SCRIPTS)
- mkdir -p sql
+sql/address_standardizer_pre.sql: $(EXTENSION_SCRIPTS) | sql
cat $^ > $@
-sql/address_standardizer--$(EXTVERSION).sql: sql/address_standardizer_pre.sql ../../utils/create_or_replace_to_create.pl
- mkdir -p sql
+sql/address_standardizer--$(EXTVERSION).sql: sql/address_standardizer_pre.sql ../../utils/create_or_replace_to_create.pl | sql
cat $< \
| $(PERL) @top_srcdir@/utils/create_or_replace_to_create.pl sql/address_standardizer_pre.sql \
> $@
-sql/address_standardizer.sql: sql/address_standardizer_pre.sql ../../utils/create_or_replace_to_create.pl
- mkdir -p sql
+sql/address_standardizer.sql: sql/address_standardizer_pre.sql ../../utils/create_or_replace_to_create.pl | sql
cat $< \
| $(PERL) @top_srcdir@/utils/create_or_replace_to_create.pl sql/address_standardizer_pre.sql \
> $@
@@ -91,39 +89,32 @@ sql/address_standardizer.sql: sql/address_standardizer_pre.sql ../../utils/creat
EXTENSION_UPGRADE_SCRIPTS = sql/address_standardizer_functions.sql
# upgrade logic for us data extension (to go to original round-robin yoyo cludge for dev upgrading)
-sql/$(EXTENSION)--1.0--$(EXTVERSION).sql: sql/address_standardizer_functions.sql
- mkdir -p sql
+sql/$(EXTENSION)--1.0--$(EXTVERSION).sql: sql/address_standardizer_functions.sql | sql
cat $^ > $@
-sql/$(EXTENSION)--$(EXTVERSION)next--$(EXTVERSION).sql: sql/address_standardizer_functions.sql
- mkdir -p sql
+sql/$(EXTENSION)--$(EXTVERSION)next--$(EXTVERSION).sql: sql/address_standardizer_functions.sql | sql
cat $^ > $@
# build us data extension
-sql/$(EXTENSION)_data_us--$(EXTVERSION).sql: us_lex.sql us_gaz.sql us_rules.sql sql_bits/address_standardizer_data_us_mark_editable_objects.sql.in
- mkdir -p sql
+sql/$(EXTENSION)_data_us--$(EXTVERSION).sql: us_lex.sql us_gaz.sql us_rules.sql sql_bits/address_standardizer_data_us_mark_editable_objects.sql.in | sql
cat $^ > $@
-sql/$(EXTENSION)_data_us.sql: us_lex.sql us_gaz.sql us_rules.sql sql_bits/address_standardizer_data_us_mark_editable_objects.sql.in
- mkdir -p sql
+sql/$(EXTENSION)_data_us.sql: us_lex.sql us_gaz.sql us_rules.sql sql_bits/address_standardizer_data_us_mark_editable_objects.sql.in | sql
cat $^ > $@
# upgrade logic for us data extension (to go to next cludge for dev upgrading)
-sql/$(EXTENSION)_data_us--$(EXTVERSION)--$(EXTVERSION)next.sql: sql/$(EXTENSION)_data_us--$(EXTVERSION).sql
- mkdir -p sql
+sql/$(EXTENSION)_data_us--$(EXTVERSION)--$(EXTVERSION)next.sql: sql/$(EXTENSION)_data_us--$(EXTVERSION).sql | sql
cat $^ > $@
# upgrade logic for us data extension (to go to original round-robin yoyo cludge for dev upgrading)
-sql/$(EXTENSION)_data_us--$(EXTVERSION)next--$(EXTVERSION).sql: sql/$(EXTENSION)_data_us--$(EXTVERSION).sql
- mkdir -p sql
+sql/$(EXTENSION)_data_us--$(EXTVERSION)next--$(EXTVERSION).sql: sql/$(EXTENSION)_data_us--$(EXTVERSION).sql | sql
cat $^ > $@
sql/$(EXTENSION)--ANY--$(EXTVERSION).sql: $(EXTENSION_UPGRADE_SCRIPTS)
cat $(EXTENSION_UPGRADE_SCRIPTS) > $@
-sql/$(EXTENSION)_data_us--ANY--$(EXTVERSION).sql: sql/$(EXTENSION)_data_us--$(EXTVERSION).sql
- mkdir -p sql
+sql/$(EXTENSION)_data_us--ANY--$(EXTVERSION).sql: sql/$(EXTENSION)_data_us--$(EXTVERSION).sql | sql
cat $^ > $@
include @srcdir@/../upgrade-paths-rules.mk
-----------------------------------------------------------------------
Summary of changes:
extensions/address_standardizer/Makefile.in | 35 +++++++++++------------------
1 file changed, 13 insertions(+), 22 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list