pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/scripts genreadme: Fix printing of package options ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97c1a0e0591b
branches:  trunk
changeset: 447566:97c1a0e0591b
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Feb 22 04:19:00 2021 +0000

description:
genreadme: Fix printing of package options where there's more than one

diffstat:

 mk/scripts/genreadme.awk   |  10 ++++++----
 mk/scripts/htmloptions.awk |   4 ++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r cb5caab674b9 -r 97c1a0e0591b mk/scripts/genreadme.awk
--- a/mk/scripts/genreadme.awk  Sun Feb 21 22:22:22 2021 +0000
+++ b/mk/scripts/genreadme.awk  Mon Feb 22 04:19:00 2021 +0000
@@ -1,7 +1,7 @@
 #!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.41 2021/02/21 09:45:01 nia Exp $
+# $NetBSD: genreadme.awk,v 1.42 2021/02/22 04:19:00 nia Exp $
 #
-# Copyright (c) 2002, 2003, 2005, 2006, 2015 The NetBSD Foundation, Inc.
+# Copyright (c) 2002-2021 The NetBSD Foundation, Inc.
 # All rights reserved.
 #
 # This code is derived from software contributed to The NetBSD Foundation
@@ -37,11 +37,10 @@
 #
 # topdepends[]  : index=pkgdir (math/scilab)
 #                 List of explicitly listed depencencies by name.
+#                 I.e.  "xless-[0-9]* pvm-3.4.3"
 #
 # topbuilddepends[]  : index=pkgdir (math/scilab)
 #                 List of explicitly listed depencencies by name.
-#                 I.e.  "xless-[0-9]* pvm-3.4.3"
-#                 I.e.  "xless-[0-9]* pvm-3.4.3"
 #
 BEGIN {
        do_pkg_readme=1;
@@ -161,9 +160,12 @@
 
 /^htmloptions / {
        htmloptions = $3;
+       origfs = FS;
+       FS = "\t";
        for (i = 4; i <= NF; i++){
                htmloptions = htmloptions " " $i;
        }
+       FS = origfs;
        options[$2] = htmloptions;
        next;
 }
diff -r cb5caab674b9 -r 97c1a0e0591b mk/scripts/htmloptions.awk
--- a/mk/scripts/htmloptions.awk        Sun Feb 21 22:22:22 2021 +0000
+++ b/mk/scripts/htmloptions.awk        Mon Feb 22 04:19:00 2021 +0000
@@ -1,5 +1,5 @@
 #!/usr/bin/awk -f
-# $NetBSD: htmloptions.awk,v 1.3 2020/05/10 07:48:10 rillig Exp $
+# $NetBSD: htmloptions.awk,v 1.4 2021/02/22 04:19:00 nia Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -32,7 +32,7 @@
 
 /^\t/ {
        o++;
-       printf "<dt>%s</dt><dd>%s</dd>\n", escape_html($2), escape_html($3);
+       printf "<dt>%s</dt><dd>%s</dd>\t", escape_html($2), escape_html($3);
 }
 
 /^These options are/ {



Home | Main Index | Thread Index | Old Index