Old expression was not sed 3.x compatible, used in mingw.
DATA_built = londiste.sql londiste.upgrade.sql
SQLS = structure/tables.sql structure/grants.sql structure/functions.sql
-FUNCS = $(shell sed -n -e '/^\\/{s/\\i //;p}' $(SQLS))
+FUNCS = $(shell sed -e 's/^[^\\].*//' -e 's/\\i //' $(SQLS))
SRCS = $(SQLS) $(FUNCS)
REGRESS = londiste_install londiste_provider londiste_subscriber \
# scripts that load other sql files
LDRS = structure/func_internal.sql structure/func_public.sql structure/triggers.sql
-FUNCS = $(shell sed -n -e '/^\\/{s/\\i //;p}' $(LDRS))
+FUNCS = $(shell sed -e 's/^[^\\].*//' -e 's/\\i //' $(LDRS))
SRCS = structure/tables.sql structure/grants.sql structure/install.sql \
structure/uninstall_pgq.sql $(FUNCS)
DATA_built = pgq_node.sql pgq_node.upgrade.sql
-FUNCS = $(shell sed -n -e '/^\\/{s/\\i //;p}' structure/functions.sql)
+LDRS = structure/functions.sql
+FUNCS = $(shell sed -e 's/^[^\\].*//' -e 's/\\i //' $(LDRS))
SRCS = structure/tables.sql structure/functions.sql $(FUNCS)
REGRESS = pgq_node_test