diff options
author | rillig <rillig@pkgsrc.org> | 2006-09-19 20:51:34 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-09-19 20:51:34 +0000 |
commit | 262f164d43dbaae2358882b7a651a1bd725cbe32 (patch) | |
tree | 728573f578b998b8730c593347f0c07b458b88ca | |
parent | ba0e4a79286ce743c2348e36884ea44237eca158 (diff) | |
download | pkgsrc-262f164d43dbaae2358882b7a651a1bd725cbe32.tar.gz |
Bugfix: In the #! interpreter lines, allow white-space behind the #!.
This fixes the build for audio/madman. Before, only some of the
interpreters had been replaced.
-rw-r--r-- | mk/configure/replace-interpreter.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/configure/replace-interpreter.mk b/mk/configure/replace-interpreter.mk index 7b52996c952..a9010f16c3b 100644 --- a/mk/configure/replace-interpreter.mk +++ b/mk/configure/replace-interpreter.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace-interpreter.mk,v 1.4 2006/07/27 14:51:54 rillig Exp $ +# $NetBSD: replace-interpreter.mk,v 1.5 2006/09/19 20:51:34 rillig Exp $ # This file provides common templates for replacing #! interpreters # in script files. @@ -80,7 +80,7 @@ replace-interpreter: cd ${WRKSRC}; \ for f in ${REPLACE_FILES.${_lang_}}; do \ if [ -f "$${f}" ]; then \ - ${SED} -e '1s|^#!${REPLACE.${_lang_}.old}|#!${REPLACE.${_lang_}.new}|' \ + ${SED} -e '1s|^#![[:space:]]*${REPLACE.${_lang_}.old}|#!${REPLACE.${_lang_}.new}|' \ < "$${f}" > "$${f}.new"; \ if [ -x "$${f}" ]; then \ ${CHMOD} a+x "$${f}.new"; \ |