summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2003-03-19 02:12:11 +0000
committerdmcmahill <dmcmahill>2003-03-19 02:12:11 +0000
commit7fb6512c688acc7eab3930914442bcc8cec66d18 (patch)
tree3a0372929635356e5ce19490cc078354997f4450 /mk/scripts
parent424cfbf9009ec8cbaf0cdb0bbdd0f1a0ae9755d0 (diff)
downloadpkgsrc-7fb6512c688acc7eab3930914442bcc8cec66d18.tar.gz
fix a few 'strings split across lines' bugs which caused some dependencies
to be dropped from the README.html files. Problem of missing dependencies noted by Christian Hattemer in a private email.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/genreadme.awk13
1 files changed, 4 insertions, 9 deletions
diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk
index d194751044b..ce4ae24a1c4 100755
--- a/mk/scripts/genreadme.awk
+++ b/mk/scripts/genreadme.awk
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.6 2003/02/09 15:06:54 wiz Exp $
+# $NetBSD: genreadme.awk,v 1.7 2003/03/19 02:12:11 dmcmahill Exp $
#
# Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -116,8 +116,7 @@ BEGIN {
printf("Appending %s to topbuilddepends[%s] (%s)\n",
pkgpat, pkg, topbuilddepends[pkg]);
}
- topbuilddepends[pkg] = topbuilddepends[pkg]
- " " pkgpat " " ;
+ topbuilddepends[pkg] = topbuilddepends[pkg] " " pkgpat " " ;
}
}
@@ -342,10 +341,7 @@ END {
}
if (MULTIARCH == "no"){
- cmd="ls -1 "PACKAGES "/" \
- PKGREPOSITORYSUBDIR "/" \
- wildcard[toppkg] PKG_SUFX \
- " 2>/dev/null";
+ cmd="ls -1 "PACKAGES "/" PKGREPOSITORYSUBDIR "/" wildcard[toppkg] PKG_SUFX " 2>/dev/null";
if (debug) {
printf("Checking for binary package with %s\n",
cmd);
@@ -649,8 +645,7 @@ function find_all_depends(pkg, pkgreg, i, deps, depdir){
# we depend on may also have depended on
# deps[i].
if (alldepends[pkg] !~ reg2str(deps[i])){
- alldepends[pkg] = alldepends[pkg] " " deps[i] " "
- find_all_depends(depdir);
+ alldepends[pkg] = alldepends[pkg] " " deps[i] " " find_all_depends(depdir);
}
else {
if (debug) printf("\t%s is already listed in %s\n",