diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-10-04 13:47:17 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-10-04 13:47:17 -0300 |
commit | 815cf73c266e371fe2eaa81787572564736e2b02 (patch) | |
tree | 480f583c567f42c57220ae2f25c4b975e6375549 /Makefile.luarocks | |
parent | e3a25e1c98fac6f52fe5e0653acea73d528a9a7b (diff) | |
download | luarocks-815cf73c266e371fe2eaa81787572564736e2b02.tar.gz luarocks-815cf73c266e371fe2eaa81787572564736e2b02.tar.bz2 luarocks-815cf73c266e371fe2eaa81787572564736e2b02.zip |
Make Makefiles install site_config.lua in new location.
Fixes #735.
Diffstat (limited to '')
-rw-r--r-- | Makefile.luarocks | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.luarocks b/Makefile.luarocks index 20ede467..f0652891 100644 --- a/Makefile.luarocks +++ b/Makefile.luarocks | |||
@@ -12,4 +12,5 @@ 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 | 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" | 15 | site_config="site_config_$(echo "$luaver" | sed 's,\.,_,').lua" |
16 | lprefix=$(echo "$(LUADIR)" | sed 's,/lib/luarocks/.*,,'); sed "s,LUAROCKS_PREFIX=.*,LUAROCKS_PREFIX=[[$$lprefix]],g" "$(LUAROCKS_PREFIX)/share/lua/$$luaver/luarocks/core/$$site_config" > "$(DESTDIR)$(LUADIR)/luarocks/core/$$site_config" | ||