Skip to content

Commit

Permalink
Converted SQL mail into multiple files.
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadshoaib committed Oct 25, 2023
1 parent 433ccc6 commit f8d5546
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down
32 changes: 16 additions & 16 deletions sql/sql_files
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8d5546

Please sign in to comment.