Software /
code /
prosody
Comparison
tools/migration/Makefile @ 10003:4d702f0c6273
migrator: Rewrite to use storage modules
This allows migrating to and from any storage module that supports the
right methods. Based on experimental mod_migrate work.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 05 May 2019 21:32:34 +0200 |
parent | 6574:cd0088c73daf |
child | 10725:ddc2607ec89e |
comparison
equal
deleted
inserted
replaced
10002:b6b5b9d7417d | 10003:4d702f0c6273 |
---|---|
10 INSTALLEDSOURCE = $(LIBDIR)/prosody | 10 INSTALLEDSOURCE = $(LIBDIR)/prosody |
11 INSTALLEDCONFIG = $(SYSCONFDIR) | 11 INSTALLEDCONFIG = $(SYSCONFDIR) |
12 INSTALLEDMODULES = $(LIBDIR)/prosody/modules | 12 INSTALLEDMODULES = $(LIBDIR)/prosody/modules |
13 INSTALLEDDATA = $(DATADIR) | 13 INSTALLEDDATA = $(DATADIR) |
14 | 14 |
15 SOURCE_FILES = migrator/*.lua | 15 all: prosody-migrator.install migrator.cfg.lua.install prosody-migrator.lua |
16 | |
17 all: prosody-migrator.install migrator.cfg.lua.install prosody-migrator.lua $(SOURCE_FILES) | |
18 | 16 |
19 install: prosody-migrator.install migrator.cfg.lua.install | 17 install: prosody-migrator.install migrator.cfg.lua.install |
20 install -d $(BIN) $(CONFIG) $(SOURCE) $(SOURCE)/migrator | 18 install -d $(BIN) $(CONFIG) $(SOURCE) |
21 install -d $(MAN)/man1 | 19 install -d $(MAN)/man1 |
22 install -d $(SOURCE)/migrator | 20 install -d $(SOURCE)/migrator |
23 install -m755 ./prosody-migrator.install $(BIN)/prosody-migrator | 21 install -m755 ./prosody-migrator.install $(BIN)/prosody-migrator |
24 install -m644 $(SOURCE_FILES) $(SOURCE)/migrator | |
25 test -e $(CONFIG)/migrator.cfg.lua || install -m644 migrator.cfg.lua.install $(CONFIG)/migrator.cfg.lua | 22 test -e $(CONFIG)/migrator.cfg.lua || install -m644 migrator.cfg.lua.install $(CONFIG)/migrator.cfg.lua |
26 | 23 |
27 clean: | 24 clean: |
28 rm -f prosody-migrator.install | 25 rm -f prosody-migrator.install |
29 rm -f migrator.cfg.lua.install | 26 rm -f migrator.cfg.lua.install |