Software /
code /
prosody
Comparison
tools/migration/Makefile @ 10725:ddc2607ec89e
migrator: Inject data- and plugin paths during build
Same way as with the prosody and prosodyctl executables
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 19 Apr 2020 01:09:21 +0200 |
parent | 10003:4d702f0c6273 |
child | 10726:5d544b5e7d82 |
comparison
equal
deleted
inserted
replaced
10724:7835b9f14cb8 | 10725:ddc2607ec89e |
---|---|
26 rm -f migrator.cfg.lua.install | 26 rm -f migrator.cfg.lua.install |
27 | 27 |
28 prosody-migrator.install: prosody-migrator.lua | 28 prosody-migrator.install: prosody-migrator.lua |
29 sed "1s/\blua\b/$(RUNWITH)/; \ | 29 sed "1s/\blua\b/$(RUNWITH)/; \ |
30 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ | 30 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ |
31 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" \ | 31 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ |
32 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ | |
33 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" \ | |
32 < prosody-migrator.lua > prosody-migrator.install | 34 < prosody-migrator.lua > prosody-migrator.install |
33 | 35 |
34 migrator.cfg.lua.install: migrator.cfg.lua | 36 migrator.cfg.lua.install: migrator.cfg.lua |
35 sed "s|^local data_path = .*;$$|local data_path = '$(INSTALLEDDATA)';|;" \ | 37 sed "s|^local data_path = .*;$$|local data_path = '$(INSTALLEDDATA)';|;" \ |
36 < migrator.cfg.lua > migrator.cfg.lua.install | 38 < migrator.cfg.lua > migrator.cfg.lua.install |