aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-03-03 13:59:50 +1030
committerMark Pulford <mark@kyne.com.au>2012-03-03 14:17:37 +1030
commit91e1a125a67e189c0f8f25e3b44ec945ea048c1c (patch)
tree9e82f09785f6c9b2ba6ebd179e7afaaf0451047d
parent9b9df2fa3475531aba8e41e38ba7d452d802cfb6 (diff)
downloadluarocks-91e1a125a67e189c0f8f25e3b44ec945ea048c1c.tar.gz
luarocks-91e1a125a67e189c0f8f25e3b44ec945ea048c1c.tar.bz2
luarocks-91e1a125a67e189c0f8f25e3b44ec945ea048c1c.zip
Fix build on platforms without the "sed -i" option
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7c1cb252..89993210 100644
--- a/Makefile
+++ b/Makefile
@@ -104,7 +104,8 @@ check_makefile:
104cleanup_bins: 104cleanup_bins:
105 for f in $(BIN_FILES) ;\ 105 for f in $(BIN_FILES) ;\
106 do \ 106 do \
107 sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bin/$$f ;\ 107 mv src/bin/$$f{,.bak} ;\
108 sed "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" < src/bin/$$f.bak > src/bin/$$f ;\
108 rm src/bin/$$f.bak ;\ 109 rm src/bin/$$f.bak ;\
109 done 110 done
110 111