changeset 1134:5077917e065a

<GreyKnight> (cd luabuild/luarocks-2.0.12; make install > make.out 2> make.err)
author HackBot
date Fri, 14 Dec 2012 22:26:18 +0000
parents 6518311459ee
children 7d09ae86104c
files etc/luarocks/config.lua luabuild/luarocks-2.0.12/make.out share/lua/5.2/luarocks/site_config.lua
diffstat 3 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/luarocks/config.lua	Fri Dec 14 22:26:18 2012 +0000
@@ -0,0 +1,4 @@
+rocks_trees = {
+   home..[[/.luarocks]],
+   [[/hackenv]]
+}
--- a/luabuild/luarocks-2.0.12/make.out	Fri Dec 14 22:25:08 2012 +0000
+++ b/luabuild/luarocks-2.0.12/make.out	Fri Dec 14 22:26:18 2012 +0000
@@ -18,3 +18,26 @@
 
 Done. Type 'make install' to install into /hackenv.
 
+mkdir -p "/hackenv/bin"
+cd src/bin && cp luarocks luarocks-admin "/hackenv/bin"
+mkdir -p "/hackenv/share/lua/5.2//luarocks"
+cd src/luarocks && for f in fs/unix/tools.lua fs/unix.lua fs/win32/tools.lua fs/win32.lua fs/lua.lua persist.lua list.lua require.lua repos.lua dir.lua make_manifest.lua command_line.lua install.lua build/command.lua build/cmake.lua build/make.lua build/builtin.lua fetch/cvs.lua fetch/git.lua fetch/sscm.lua tools/patch.lua fetch/svn.lua tools/zip.lua tools/tar.lua pack.lua type_check.lua make.lua path.lua remove.lua fs.lua manif.lua add.lua deps.lua build.lua search.lua show.lua manif_core.lua fetch.lua unpack.lua validate.lua cfg.lua download.lua help.lua util.lua index.lua cache.lua refresh_cache.lua loader.lua admin_remove.lua fetch/hg.lua fetch/git_file.lua new_version.lua lint.lua purge.lua; \
+	do \
+	   d="/hackenv/share/lua/5.2//luarocks"/`dirname "$f"` && \
+	   mkdir -p "$d" && \
+	   cp "$f" "$d" || exit 1; \
+	done
+mkdir -p "/hackenv/share/lua/5.2//luarocks"
+cd src/luarocks && cp site_config.lua "/hackenv/share/lua/5.2//luarocks"
+mkdir -p "/hackenv"
+if [ ! -f "/hackenv/etc/luarocks/config.lua" ] ;\
+	then \
+	   mkdir -p `dirname "/hackenv/etc/luarocks/config.lua"` ;\
+	   echo 'rocks_trees = {' >> "/hackenv/etc/luarocks/config.lua" ;\
+	   if  [ ! -n "" ] ;\
+	   then \
+	      echo '   home..[[/.luarocks]],' >> "/hackenv/etc/luarocks/config.lua" ;\
+	   fi ;\
+	   echo '   [[/hackenv]]' >> "/hackenv/etc/luarocks/config.lua" ;\
+	   echo '}' >> "/hackenv/etc/luarocks/config.lua" ;\
+	fi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/share/lua/5.2/luarocks/site_config.lua	Fri Dec 14 22:26:18 2012 +0000
@@ -0,0 +1,7 @@
+module("luarocks.site_config")
+LUAROCKS_PREFIX=[[/hackenv]]
+LUA_INCDIR=[[/hackenv/include]]
+LUA_LIBDIR=[[/hackenv/lib]]
+LUA_BINDIR=[[/hackenv/bin]]
+LUAROCKS_SYSCONFIG=[[/hackenv/etc/luarocks/config.lua]]
+LUAROCKS_ROCKS_TREE=[[/hackenv]]