From 91e1a125a67e189c0f8f25e3b44ec945ea048c1c Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sat, 3 Mar 2012 13:59:50 +1030 Subject: Fix build on platforms without the "sed -i" option --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7c1cb252..89993210 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,8 @@ check_makefile: cleanup_bins: for f in $(BIN_FILES) ;\ do \ - sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bin/$$f ;\ + mv src/bin/$$f{,.bak} ;\ + sed "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" < src/bin/$$f.bak > src/bin/$$f ;\ rm src/bin/$$f.bak ;\ done -- cgit v1.2.3-55-g6feb