aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-05-25 03:13:39 -0300
committerHisham <hisham@gobolinux.org>2016-05-25 03:13:39 -0300
commit5f896c909c2c0bbe6bee2ab7577f632692c975d7 (patch)
tree505866040e5de2eef9bf8b52f424d3b0a8494fc2 /Makefile
parent4c12525d1f52bccc71c2a3054d3db328a0577179 (diff)
downloadluarocks-5f896c909c2c0bbe6bee2ab7577f632692c975d7.tar.gz
luarocks-5f896c909c2c0bbe6bee2ab7577f632692c975d7.tar.bz2
luarocks-5f896c909c2c0bbe6bee2ab7577f632692c975d7.zip
Ensure entries are readable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 81d24d24..dc9079b0 100644
--- a/Makefile
+++ b/Makefile
@@ -92,7 +92,7 @@ build_bins: cleanup_bins
92 echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\ 92 echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\
93 echo "package.path = [[$(LUADIR)/?.lua;]]..package.path" | sed "s,//,/,g" >> src/bin/$$f ;\ 93 echo "package.path = [[$(LUADIR)/?.lua;]]..package.path" | sed "s,//,/,g" >> src/bin/$$f ;\
94 cat src/bin/$$f.bak >> src/bin/$$f ;\ 94 cat src/bin/$$f.bak >> src/bin/$$f ;\
95 chmod +x src/bin/$$f ;\ 95 chmod +rx src/bin/$$f ;\
96 rm -f src/bin/$$f.bak ;\ 96 rm -f src/bin/$$f.bak ;\
97 done 97 done
98 98
@@ -117,7 +117,7 @@ cleanup_bins:
117 do \ 117 do \
118 mv src/bin/$$f src/bin/$$f.bak ;\ 118 mv src/bin/$$f src/bin/$$f.bak ;\
119 sed "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" < src/bin/$$f.bak > src/bin/$$f ;\ 119 sed "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" < src/bin/$$f.bak > src/bin/$$f ;\
120 chmod +x src/bin/$$f ;\ 120 chmod +rx src/bin/$$f ;\
121 rm -f src/bin/$$f.bak ;\ 121 rm -f src/bin/$$f.bak ;\
122 done 122 done
123 123