diff options
| author | Mark Pulford <mark@kyne.com.au> | 2012-03-03 13:59:50 +1030 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2012-03-03 14:17:37 +1030 |
| commit | 91e1a125a67e189c0f8f25e3b44ec945ea048c1c (patch) | |
| tree | 9e82f09785f6c9b2ba6ebd179e7afaaf0451047d | |
| parent | 9b9df2fa3475531aba8e41e38ba7d452d802cfb6 (diff) | |
| download | luarocks-91e1a125a67e189c0f8f25e3b44ec945ea048c1c.tar.gz luarocks-91e1a125a67e189c0f8f25e3b44ec945ea048c1c.tar.bz2 luarocks-91e1a125a67e189c0f8f25e3b44ec945ea048c1c.zip | |
Fix build on platforms without the "sed -i" option
| -rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -104,7 +104,8 @@ check_makefile: | |||
| 104 | cleanup_bins: | 104 | cleanup_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 | ||
