diff options
| author | Hisham <hisham@gobolinux.org> | 2016-10-06 15:41:13 -0300 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-10-06 15:41:13 -0300 |
| commit | 1fea0e3a0972bcc6b4319cd3d9e79834562486bc (patch) | |
| tree | 4a016238f4d821ca0ebf4b83c03b32c3305bca0f | |
| parent | ccfcd97d14659ba540927272fb307a4113ce0992 (diff) | |
| download | luarocks-1fea0e3a0972bcc6b4319cd3d9e79834562486bc.tar.gz luarocks-1fea0e3a0972bcc6b4319cd3d9e79834562486bc.tar.bz2 luarocks-1fea0e3a0972bcc6b4319cd3d9e79834562486bc.zip | |
Fixup LUAROCKS_PREFIX when copying over site_config.lua.
See #625.
| -rw-r--r-- | Makefile.luarocks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.luarocks b/Makefile.luarocks index 1eecfeae..20ede467 100644 --- a/Makefile.luarocks +++ b/Makefile.luarocks | |||
| @@ -12,4 +12,4 @@ install: install_bins install_luas copy_site_config | |||
| 12 | copy_site_config: | 12 | copy_site_config: |
| 13 | luaver="$(LUA_VERSION)" && [ -n "$$luaver" ] || luaver=`$(LUA) -e 'print(_VERSION:sub(5))'`; \ | 13 | luaver="$(LUA_VERSION)" && [ -n "$$luaver" ] || luaver=`$(LUA) -e 'print(_VERSION:sub(5))'`; \ |
| 14 | mkdir -p "$(DESTDIR)$(LUADIR)/luarocks"; \ | 14 | mkdir -p "$(DESTDIR)$(LUADIR)/luarocks"; \ |
| 15 | cp $(LUAROCKS_PREFIX)/share/lua/$$luaver/luarocks/site_config.lua "$(DESTDIR)$(LUADIR)/luarocks" | 15 | lprefix=`echo "$(LUADIR)" | sed 's,/lib/luarocks/.*,,'`; sed "s,LUAROCKS_PREFIX=.*,LUAROCKS_PREFIX=[[$$lprefix]],g" $(LUAROCKS_PREFIX)/share/lua/$$luaver/luarocks/site_config.lua > "$(DESTDIR)$(LUADIR)/luarocks/site_config.lua" |
