bdr/udr: create scripts/ directory and set x permissions for bdr_initial_load.
authorAndres Freund <[email protected]>
Sun, 8 Feb 2015 12:06:43 +0000 (13:06 +0100)
committerAndres Freund <[email protected]>
Thu, 12 Feb 2015 09:16:59 +0000 (10:16 +0100)
This got broken in "bdr: Replace GUC-based connections with SQL and
tables", but the new fix is nicer and more complete. So it's ok not to
backpatch it.

Makefile.in

index d100292e2267da869704bac46563469b031186cd..2f094fe0baee86510ffee3c995ef62b375a0ca3c 100644 (file)
@@ -97,7 +97,9 @@ bdr_init_copy: bdr_init_copy.o
    $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(libpq_pgport) $(LIBS) -o $@$(X)
 
 scripts/bdr_initial_load: scripts/bdr_initial_load.in
+   @mkdir -p $(shell dirname $@)
    sed -e "s/BDR_VERSION/$(BDR_VERSION)/" -e "s/PG_VERSION/$(VERSION)/" $< > $@
+   @chmod +x $@
 
 extsql/bdr--0.8.0.1.sql: extsql/bdr--0.8.0.sql extsql/bdr--0.8.0--0.8.0.1.sql
    mkdir -p extsql