Diff

tools/migration/Makefile @ 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
parent 4229:f15b4e9ba688
child 6574:cd0088c73daf
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