diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2007-06-19 13:11:01 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2007-06-19 13:11:01 +0000 |
commit | 93768ceffe866b3590183376dab31ba5e020bd4c (patch) | |
tree | b8fac6839aad2c60b8c6b4656e41ba654cba76e3 | |
parent | 08492918e0fc9f4ab52d747268cd23b7bb87d44a (diff) | |
download | pkgsrc-93768ceffe866b3590183376dab31ba5e020bd4c.tar.gz |
On the sed expression used to extract $NetBSD$ and $Id$ tags, add
a "^" to the beginning to anchor the expression. No change in the ouput
but on SunOS-5.9 it runs up to 90,000 times faster on some files (probably
much less of an improvement on some, maybe more improvement on others).
Committed during the freeze as bulk builds that call 'make debug' were
unusable.
-rw-r--r-- | mk/bsd.pkg.debug.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/bsd.pkg.debug.mk b/mk/bsd.pkg.debug.mk index 0a73f709b7c..e183531ade1 100644 --- a/mk/bsd.pkg.debug.mk +++ b/mk/bsd.pkg.debug.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.debug.mk,v 1.18 2007/06/06 12:43:04 rillig Exp $ +# $NetBSD: bsd.pkg.debug.mk,v 1.19 2007/06/19 13:11:01 dmcmahill Exp $ # # Public targets: # @@ -43,12 +43,12 @@ debug: \ _show-dbginfo-file-versions: @${PRINTF} "File versions:\\n" ${_PKG_SILENT}${_PKG_DEBUG} set -e; \ - sedexpr='s,.*\([$$]NetBSD:[^$$]*\$$\).*,\1,p'; \ + sedexpr='s,^.*\([$$]NetBSD:[^$$]*\$$\).*,\1,p'; \ ${FIND} * -type f -print \ | while read fname; do \ ident=`${SED} -n \ - -e 's,.*\\([$$]NetBSD:[^$$]*\\$$\\).*,\\1,p' \ - -e 's,.*\\([$$]Id:[^$$]*\\$$\\).*,\\1,p' \ + -e 's,^.*\\([$$]NetBSD:[^$$]*\\$$\\).*,\\1,p' \ + -e 's,^.*\\([$$]Id:[^$$]*\\$$\\).*,\\1,p' \ "$${fname}"` || continue; \ case $${ident} in \ *?*) ${PRINTF} "\\t%s: %s\\n" "$${fname}" "$${ident}";; \ |