mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
LuaRocks: Add new package
Signed-off-by: Amr Hassan <amr.hassan@gmail.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff -rupN luarocks/Makefile luarocks.new/Makefile
|
||||
--- luarocks/Makefile 2015-02-19 13:24:07.027310956 +0200
|
||||
+++ luarocks.new/Makefile 2015-02-22 13:28:24.497353543 +0200
|
||||
@@ -104,7 +104,7 @@ build_bins: cleanup_bins
|
||||
for f in $(BIN_FILES) ;\
|
||||
do \
|
||||
sed "1d" src/bin/$$f > src/bin/$$f.bak ;\
|
||||
- echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\
|
||||
+ echo "#!/usr/bin/env lua" > src/bin/$$f ;\
|
||||
echo "package.path = [[$(LUADIR)/?.lua;]]..package.path" | sed "s,//,/,g" >> src/bin/$$f ;\
|
||||
cat src/bin/$$f.bak >> src/bin/$$f ;\
|
||||
chmod +x src/bin/$$f ;\
|
||||
Binary files luarocks/src/bin/.luarocks.swp and luarocks.new/src/bin/.luarocks.swp differ
|
||||
Reference in New Issue
Block a user