Changeset

5402:cb6f0afd8468

tools/migration/Makefile: Apply Lua runtime override (see 53f741a5a73a)
author Kim Alvefur <zash@zash.se>
date Sun, 31 Mar 2013 20:09:14 +0200
parents 5401:456c1998638d
children 5403:d7ecf6cd584e
files tools/migration/Makefile
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/migration/Makefile	Sun Mar 31 20:04:09 2013 +0200
+++ b/tools/migration/Makefile	Sun Mar 31 20:09:14 2013 +0200
@@ -29,7 +29,8 @@
 	rm -f migrator.cfg.lua.install
 
 prosody-migrator.install: prosody-migrator.lua
-	sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
+	sed "1s/\blua\b/$(RUNWITH)/; \
+		s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
 		s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" \
 			< prosody-migrator.lua > prosody-migrator.install