summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-08-03 16:24:53 +0000
committertnn <tnn@pkgsrc.org>2008-08-03 16:24:53 +0000
commitd7188a9079ec57040b9543a3d6af4d36ff038f1a (patch)
tree36b8287f5b4699b3145ac496ca455904a1dad138 /mk
parent5b8348248f0460a6a8465533508053f274c4df4b (diff)
downloadpkgsrc-d7188a9079ec57040b9543a3d6af4d36ff038f1a.tar.gz
fix "make readme" error due to awk changes in -current.
From Aleksej Saushev.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/scripts/genreadme.awk18
1 files changed, 9 insertions, 9 deletions
diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk
index 02c02339c98..df335e99803 100755
--- a/mk/scripts/genreadme.awk
+++ b/mk/scripts/genreadme.awk
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.32 2008/04/18 14:26:37 joerg Exp $
+# $NetBSD: genreadme.awk,v 1.33 2008/08/03 16:24:53 tnn Exp $
#
# Copyright (c) 2002, 2003, 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -660,12 +660,12 @@ function find_all_depends(pkg, type, pkgreg, i, deps, depdir, topdep){
# we'll distinguish things like gnome from gnome-libs
#
function reg2str(reg){
- gsub(/\./, "\\\.", reg);
- gsub(/\+/, "\\\+", reg);
- gsub(/\*/, "\\\*", reg);
- gsub(/\?/, "\\\?", reg);
- gsub(/\[/, "\\\[", reg);
- gsub(/\]/, "\\\]", reg);
+ gsub(/\./, "\\.", reg);
+ gsub(/\+/, "\\+", reg);
+ gsub(/\*/, "\\*", reg);
+ gsub(/\?/, "\\?", reg);
+ gsub(/\[/, "\\[", reg);
+ gsub(/\]/, "\\]", reg);
reg = " "reg" ";
return(reg);
}
@@ -677,8 +677,8 @@ function reg2str(reg){
function glob2reg(reg){
# escape some characters which are special in regular expressions
- gsub(/\./, "\\\.", reg);
- gsub(/\+/, "\\\+", reg);
+ gsub(/\./, "\\.", reg);
+ gsub(/\+/, "\\+", reg);
# and reformat some others
gsub(/\*/, ".*", reg);