mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Change sed usage back into one sed script for incompetent versions of sed
This commit is contained in:
parent
464b5d6c0f
commit
2751ce1517
1 changed files with 4 additions and 6 deletions
10
Makefile
10
Makefile
|
@ -40,12 +40,10 @@ util/hashes.so:
|
|||
$(MAKE) install -C util-src
|
||||
|
||||
prosody.install: prosody
|
||||
cp prosody prosody.install
|
||||
sed -i "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|;" prosody.install
|
||||
sed -i "s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" prosody.install
|
||||
sed -i "s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|;" prosody.install
|
||||
# The trailing slash is intentional in this one
|
||||
sed -i "s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" prosody.install
|
||||
sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
|
||||
s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \
|
||||
s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \
|
||||
s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosody > prosody.install
|
||||
|
||||
prosody.cfg.lua.install:
|
||||
sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue