summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.debug.mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-06-19 13:11:01 +0000
committerdmcmahill <dmcmahill>2007-06-19 13:11:01 +0000
commitcfdffaff9d3b3530f31f632fa30df5e70a84b50f (patch)
treeb8fac6839aad2c60b8c6b4656e41ba654cba76e3 /mk/bsd.pkg.debug.mk
parentac19a6a0060b3bd98615cf9df9d06036dc5bed3f (diff)
downloadpkgsrc-cfdffaff9d3b3530f31f632fa30df5e70a84b50f.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.
Diffstat (limited to 'mk/bsd.pkg.debug.mk')
-rw-r--r--mk/bsd.pkg.debug.mk8
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}";; \