diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-03-19 16:19:42 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-03-19 16:19:42 -0300 |
commit | a6ae46485cd6445e68a011e4b6a3d82401c2bcd3 (patch) | |
tree | bb701530cd13e8ab21a72ef85cb78ea9e46ddc91 | |
parent | 739320d62c6b74c07f6942004aed1aedca1a2fc8 (diff) | |
download | luarocks-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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 | ||