aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2016-11-24 07:55:06 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2016-11-24 07:55:06 +0100
commitb6ddcf3e5815451047b3e505ae07f2fc69cb1e31 (patch)
tree5d9300d5713a38756694c9daf8702fd6af7d91f0
parentMerge branch 'weiss-systemd-unit-improvements' (#1346) (diff)
Makefile.in: Substitute all @variables@ in a line
There are now lines with multiple occurrences of the @ctlscriptpath@ variable in the ejabberd.service template.
-rw-r--r--Makefile.in24
1 files changed, 12 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in
index 00fd4f62c..1cb1074a6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -173,15 +173,15 @@ install: all copy-files
[ -f $(ETCDIR)/ejabberd.yml ] \
&& $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(ETCDIR)/ejabberd.yml-new \
|| $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(ETCDIR)/ejabberd.yml
- $(SED) -e "s*{{rootdir}}*@prefix@*" \
- -e "s*{{installuser}}*@INSTALLUSER@*" \
- -e "s*{{bindir}}*@bindir@*" \
- -e "s*{{libdir}}*@libdir@*" \
- -e "s*{{sysconfdir}}*@sysconfdir@*" \
- -e "s*{{localstatedir}}*@localstatedir@*" \
- -e "s*{{docdir}}*@docdir@*" \
- -e "s*{{erl}}*@ERL@*" \
- -e "s*{{epmd}}*@EPMD@*" ejabberdctl.template \
+ $(SED) -e "s*{{rootdir}}*@prefix@*g" \
+ -e "s*{{installuser}}*@INSTALLUSER@*g" \
+ -e "s*{{bindir}}*@bindir@*g" \
+ -e "s*{{libdir}}*@libdir@*g" \
+ -e "s*{{sysconfdir}}*@sysconfdir@*g" \
+ -e "s*{{localstatedir}}*@localstatedir@*g" \
+ -e "s*{{docdir}}*@docdir@*g" \
+ -e "s*{{erl}}*@ERL@*g" \
+ -e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template \
> ejabberdctl.example
[ -f $(ETCDIR)/ejabberdctl.cfg ] \
&& $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg-new \
@@ -198,13 +198,13 @@ install: all copy-files
[ -f deps/elixir/bin/mix ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/mix $(BINDIR)/mix || true
#
# Init script
- $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*" \
- -e "s*@installuser@*$(INIT_USER)*" ejabberd.init.template \
+ $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
+ -e "s*@installuser@*$(INIT_USER)*g" ejabberd.init.template \
> ejabberd.init
chmod 755 ejabberd.init
#
# Service script
- $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*" ejabberd.service.template \
+ $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" ejabberd.service.template \
> ejabberd.service
chmod 755 ejabberd.service
#