This is an automated email from the ASF dual-hosted git repository.

shoaib88 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age.git

commit 0b68f9d0fa2e1d2db8b8f7b6d44d8f8c29c48ea2
Author: Shoaib <[email protected]>
AuthorDate: Wed Oct 25 14:06:11 2023 +0200

    Converted SQL mail into multiple files.
---
 Makefile      |  8 +++++---
 sql/sql_files | 32 ++++++++++++++++----------------
 2 files changed, 21 insertions(+), 19 deletions(-)

diff --git a/Makefile b/Makefile
index 894bd54e..3dedd7f8 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,9 @@ OBJS = src/backend/age.o \
 EXTENSION = age
 
 #SQLS = $(sort ($(wildcard sql/*.sql)))
-SQLS = $(shell cat sql/sql_files)
+SQLS := $(shell cat sql/sql_files)
+SQLS := $(addprefix sql/,$(SQLS)) 
+SQLS := $(addsuffix .sql,$(SQLS)) 
 
 DATA_built = $(age_sql)
 
@@ -137,8 +139,8 @@ src/backend/parser/cypher_gram.c: BISONFLAGS += 
--defines=src/include/parser/cyp
 src/backend/parser/cypher_parser.o: src/backend/parser/cypher_gram.c
 src/backend/parser/cypher_keywords.o: src/backend/parser/cypher_gram.c
 
-age--1.4.0.sql:
-       @cat sql/$(SQLS) > $@
+$(age_sql):
+       @cat $(SQLS) > $@
 
 src/backend/parser/ag_scanner.c: FLEX_NO_BACKUP=yes
 
diff --git a/sql/sql_files b/sql/sql_files
index ea165a55..737c57d2 100644
--- a/sql/sql_files
+++ b/sql/sql_files
@@ -1,16 +1,16 @@
-01_age_main.sql
-02_age_agtype.sql
-11_agtype_comparison.sql
-12_agtype_access.sql
-13_agtype_operators.sql
-14_agtype_exists.sql
-15_agtype_gin.sql
-16_agtype_graphid.sql
-17_agtype_coercions.sql
-18_agtype_string.sql
-20_age_query.sql
-41_age_scalar.sql
-42_age_string.sql
-43_age_trig.sql
-44_age_aggregate.sql
-45_agtype_typecast.sql
+01_age_main
+02_age_agtype
+11_agtype_comparison
+12_agtype_access
+13_agtype_operators
+14_agtype_exists
+15_agtype_gin
+16_agtype_graphid
+17_agtype_coercions
+18_agtype_string
+20_age_query
+41_age_scalar
+42_age_string
+43_age_trig
+44_age_aggregate
+45_agtype_typecast

Reply via email to