From d11228dbac8afc50c0308eb993f791fad8b075a4 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Sat, 7 Oct 2023 00:58:26 +0000 Subject: [PATCH] Properly pass the schema to gen_func_comment_tmpl() --- db/schemas/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/schemas/Makefile b/db/schemas/Makefile index f193826..8e75fed 100644 --- a/db/schemas/Makefile +++ b/db/schemas/Makefile @@ -615,8 +615,7 @@ $(DB_CACHE)/build_comment_files: $(PSQL_DEPENDS) $(DB_CACHE_PREREQ) \ mkdir -p $${tmpl_dir} ; \ ( $(PSQL_SETUP) \ printf "SELECT * FROM gen_func_comment_tmpl('%s');\n" \ - $(patsubst %/,%, \ - $(dir $(patsubst %/,%, $(dir $${tmpl_dir})))) ; ) \ + $$(dirname $$(dirname $${tmpl_dir})) ; ) \ | psql $(PSQL_ARGS) $(PSQL_SINGLE_TRANS) --set=ON_ERROR_STOP=y \ | ./gen_func_comment_tmpls.py $${tmpl_dir} ; \ done -- 2.34.1