Software /
code /
prosody
Comparison
tools/migration/Makefile @ 4229:f15b4e9ba688
tools/migration: Rename main.lua -> prosody-migrator.lua and update the Makefile
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 21 Mar 2011 19:39:04 +0000 |
parent | 4224:8b8d2b8e4d0b |
child | 5402:cb6f0afd8468 |
comparison
equal
deleted
inserted
replaced
4228:1c2daf61c348 | 4229:f15b4e9ba688 |
---|---|
12 INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules | 12 INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules |
13 INSTALLEDDATA = $(DATADIR) | 13 INSTALLEDDATA = $(DATADIR) |
14 | 14 |
15 SOURCE_FILES = migrator/*.lua | 15 SOURCE_FILES = migrator/*.lua |
16 | 16 |
17 all: prosody-migrator.install migrator.cfg.lua.install main.lua $(SOURCE_FILES) | 17 all: prosody-migrator.install migrator.cfg.lua.install prosody-migrator.lua $(SOURCE_FILES) |
18 | 18 |
19 install: prosody-migrator.install migrator.cfg.lua.install | 19 install: prosody-migrator.install migrator.cfg.lua.install |
20 install -d $(BIN) $(CONFIG) $(SOURCE) $(SOURCE)/migrator | 20 install -d $(BIN) $(CONFIG) $(SOURCE) $(SOURCE)/migrator |
21 install -d $(MAN)/man1 | 21 install -d $(MAN)/man1 |
22 install -d $(SOURCE)/migrator | 22 install -d $(SOURCE)/migrator |
26 | 26 |
27 clean: | 27 clean: |
28 rm -f prosody-migrator.install | 28 rm -f prosody-migrator.install |
29 rm -f migrator.cfg.lua.install | 29 rm -f migrator.cfg.lua.install |
30 | 30 |
31 prosody-migrator.install: main.lua | 31 prosody-migrator.install: prosody-migrator.lua |
32 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ | 32 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ |
33 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" \ | 33 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" \ |
34 < main.lua > prosody-migrator.install | 34 < prosody-migrator.lua > prosody-migrator.install |
35 | 35 |
36 migrator.cfg.lua.install: migrator.cfg.lua | 36 migrator.cfg.lua.install: migrator.cfg.lua |
37 sed "s|^local data_path = .*;$$|local data_path = '$(INSTALLEDDATA)';|;" \ | 37 sed "s|^local data_path = .*;$$|local data_path = '$(INSTALLEDDATA)';|;" \ |
38 < migrator.cfg.lua > migrator.cfg.lua.install | 38 < migrator.cfg.lua > migrator.cfg.lua.install |