summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2015-01-01 10:55:43 +0000
committerPavan Deolasee2015-04-15 05:46:44 +0000
commitf34d37a9b848b3979da12bc7e41601dc189a5ebe (patch)
tree5e9319c7a04b7a2764da0723c0443dfc1c76de40
parentc514680f5693f2fb905237dc34146a0295270cbe (diff)
Do not report error if some patterns are missing while processing template scripts in pgxc_ctl
-rwxr-xr-xcontrib/pgxc_ctl/make_signature24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/pgxc_ctl/make_signature b/contrib/pgxc_ctl/make_signature
index f0ddce2484..713cd61897 100755
--- a/contrib/pgxc_ctl/make_signature
+++ b/contrib/pgxc_ctl/make_signature
@@ -54,11 +54,11 @@ EOF
cp pgxc_ctl_bash_2 pgxc_ctl_bash.c.wk
ex pgxc_ctl_bash.c.wk <<EOF
-%s/"/\\\"/g
+%s/"/\\\"/ge
w
-%s/^\(.*\)$/"\1",/
-%s/^"#ifdef XCP",$/#ifdef XCP/
-%s/^"#endif",$/#endif/
+%s/^\(.*\)$/"\1",/e
+%s/^"#ifdef XCP",$/#ifdef XCP/e
+%s/^"#endif",$/#endif/e
wq
EOF
@@ -111,11 +111,11 @@ rm pgxc_ctl_bash.c.wk
cp pgxc_ctl_conf_part_full pgxc_ctl_conf_part.wk
ex pgxc_ctl_conf_part.wk <<EOF
-%s/"/\\\"/g
+%s/"/\\\"/ge
w
-%s/^\(.*\)$/"\1",/
-%s/^"#ifdef XCP",$/#ifdef XCP/
-%s/^"#endif",$/#endif/
+%s/^\(.*\)$/"\1",/e
+%s/^"#ifdef XCP",$/#ifdef XCP/e
+%s/^"#endif",$/#endif/e
wq
EOF
@@ -142,11 +142,11 @@ rm pgxc_ctl_conf_part.wk
cp pgxc_ctl_conf_part_minimal pgxc_ctl_conf_part.wk
ex pgxc_ctl_conf_part.wk <<EOF
-%s/"/\\\"/g
+%s/"/\\\"/ge
w
-%s/^\(.*\)$/"\1",/
-%s/^"#ifdef XCP",$/#ifdef XCP/
-%s/^"#endif",$/#endif/
+%s/^\(.*\)$/"\1",/e
+%s/^"#ifdef XCP",$/#ifdef XCP/e
+%s/^"#endif",$/#endif/e
wq
EOF