aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-03-19 16:19:42 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-03-19 16:19:42 -0300
commita6ae46485cd6445e68a011e4b6a3d82401c2bcd3 (patch)
treebb701530cd13e8ab21a72ef85cb78ea9e46ddc91
parent739320d62c6b74c07f6942004aed1aedca1a2fc8 (diff)
downloadluarocks-a6ae46485cd6445e68a011e4b6a3d82401c2bcd3.tar.gz
luarocks-a6ae46485cd6445e68a011e4b6a3d82401c2bcd3.tar.bz2
luarocks-a6ae46485cd6445e68a011e4b6a3d82401c2bcd3.zip
Make sure permissions are retained, now that the file is rewritten (for compatibility with implementations of sed that don't support -i)
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4ca7d72f..eda14bb5 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,7 @@ build_bins: cleanup_bins
76 echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\ 76 echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\
77 echo "package.path = [[$(LUADIR)/?.lua;$(LUADIR)/?/init.lua;]]..package.path" >> src/bin/$$f ;\ 77 echo "package.path = [[$(LUADIR)/?.lua;$(LUADIR)/?/init.lua;]]..package.path" >> src/bin/$$f ;\
78 cat src/bin/$$f.bak >> src/bin/$$f ;\ 78 cat src/bin/$$f.bak >> src/bin/$$f ;\
79 chmod +x src/bin/$$f ;\
79 rm src/bin/$$f.bak ;\ 80 rm src/bin/$$f.bak ;\
80 done 81 done
81 82