view luabuild/luarocks-2.0.12/make.out @ 1133:6518311459ee

<GreyKnight> (cd luabuild/luarocks-2.0.12; make > make.out 2> make.err)
author HackBot
date Fri, 14 Dec 2012 22:25:08 +0000
parents
children 5077917e065a
line wrap: on
line source

for f in luarocks luarocks-admin ;\
	do \
	   mv src/bin/$f src/bin/$f.bak ;\
	   sed "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" < src/bin/$f.bak > src/bin/$f ;\
	   chmod +x src/bin/$f ;\
	   rm -f src/bin/$f.bak ;\
	done
for f in luarocks luarocks-admin ;\
	do \
	   sed "1d" src/bin/$f > src/bin/$f.bak ;\
	   echo "#!/hackenv/bin/lua" > src/bin/$f ;\
	   echo "package.path = [[/hackenv/share/lua/5.2//?.lua;/hackenv/share/lua/5.2//?/init.lua;]]..package.path" >> src/bin/$f ;\
	   cat src/bin/$f.bak >> src/bin/$f ;\
	   chmod +x src/bin/$f ;\
	   rm -f src/bin/$f.bak ;\
	done
touch built

Done. Type 'make install' to install into /hackenv.