mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
tools/migration: Rename main.lua -> prosody-migrator.lua and update the Makefile
This commit is contained in:
parent
b94b9eba5e
commit
1f049ed80d
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ INSTALLEDDATA = $(DATADIR)
|
|||
|
||||
SOURCE_FILES = migrator/*.lua
|
||||
|
||||
all: prosody-migrator.install migrator.cfg.lua.install main.lua $(SOURCE_FILES)
|
||||
all: prosody-migrator.install migrator.cfg.lua.install prosody-migrator.lua $(SOURCE_FILES)
|
||||
|
||||
install: prosody-migrator.install migrator.cfg.lua.install
|
||||
install -d $(BIN) $(CONFIG) $(SOURCE) $(SOURCE)/migrator
|
||||
|
@ -28,10 +28,10 @@ clean:
|
|||
rm -f prosody-migrator.install
|
||||
rm -f migrator.cfg.lua.install
|
||||
|
||||
prosody-migrator.install: main.lua
|
||||
prosody-migrator.install: prosody-migrator.lua
|
||||
sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
|
||||
s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" \
|
||||
< main.lua > prosody-migrator.install
|
||||
< prosody-migrator.lua > prosody-migrator.install
|
||||
|
||||
migrator.cfg.lua.install: migrator.cfg.lua
|
||||
sed "s|^local data_path = .*;$$|local data_path = '$(INSTALLEDDATA)';|;" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue