pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/configure Bugfix: In the #! interpreter lines, allo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5b489ad025c
branches:  trunk
changeset: 518837:b5b489ad025c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Sep 19 20:51:34 2006 +0000

description:
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.

diffstat:

 mk/configure/replace-interpreter.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3e62c5b092ba -r b5b489ad025c mk/configure/replace-interpreter.mk
--- a/mk/configure/replace-interpreter.mk       Tue Sep 19 19:59:48 2006 +0000
+++ b/mk/configure/replace-interpreter.mk       Tue Sep 19 20:51:34 2006 +0000
@@ -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 @@
        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";               \



Home | Main Index | Thread Index | Old Index