Skip to content

Commit

Permalink
mk: move awk script to file
Browse files Browse the repository at this point in the history
  • Loading branch information
markokr committed Apr 7, 2024
1 parent 715cee4 commit 6d7c0e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mk/common-pgxs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB)

GRANT_SQL = structure/newgrants_$(EXTENSION).sql

SQLS = $(shell $(AWK) '/^\\i / { print $$2; }' structure/install.sql)
FUNCS = $(shell $(AWK) '/^\\i / { print $$2; }' $(SQLS))
SQLS = $(shell $(AWK) -f mk/show-inc.awk structure/install.sql)
FUNCS = $(shell $(AWK) -f mk/show-inc.awk $(SQLS))
SRCS = $(SQLS) $(FUNCS) $(GRANT_SQL)

#
Expand Down
1 change: 1 addition & 0 deletions mk/show-inc.awk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/^\\i / { print $2; }

0 comments on commit 6d7c0e6

Please sign in to comment.