pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/templates genreadme: Reduce size of generated README.all



details:   https://anonhg.NetBSD.org/pkgsrc/rev/542205ff1c68
branches:  trunk
changeset: 447628:542205ff1c68
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Feb 24 08:16:32 2021 +0000

description:
genreadme: Reduce size of generated README.all

diffstat:

 mk/scripts/genreadme.awk |  8 +++-----
 templates/README.all     |  7 +++----
 2 files changed, 6 insertions(+), 9 deletions(-)

diffs (49 lines):

diff -r 3885bbc98fe6 -r 542205ff1c68 mk/scripts/genreadme.awk
--- a/mk/scripts/genreadme.awk  Wed Feb 24 08:01:25 2021 +0000
+++ b/mk/scripts/genreadme.awk  Wed Feb 24 08:16:32 2021 +0000
@@ -1,5 +1,5 @@
 #!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.46 2021/02/22 09:32:55 nia Exp $
+# $NetBSD: genreadme.awk,v 1.47 2021/02/24 08:16:32 nia Exp $
 #
 # Copyright (c) 2002-2021 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -417,14 +417,12 @@
                                            pkg, readme_name,
                                            pkgdir2name[dir],
                                            comment[dir]);
-                                       allpkg[tot_numpkg] = sprintf("<!-- %s (for sorting) --><tr><td><a href=\"%s/%s/%s\">%s</a></td><td><a href=\"%s/%s\">%s</a></td><td>%s</td>\n",
+                                       # Prefix with the package name in a comment for sorting.
+                                       allpkg[tot_numpkg] = sprintf("<!-- %s --><dt><a href=\"%s/%s/%s\">%s</a></dt><dd>%s</dd>\n",
                                                                      pkgdir2name[dir],
                                                                      category, pkg,
                                                                      readme_name,
                                                                      pkgdir2name[dir],
-                                                                     category,
-                                                                     readme_name,
-                                                                     category,
                                                                      comment[dir]);
 # we need slightly fewer escapes here since we are not gsub()-ing
 # allpkg[] into the output files but just printf()-ing it.
diff -r 3885bbc98fe6 -r 542205ff1c68 templates/README.all
--- a/templates/README.all      Wed Feb 24 08:01:25 2021 +0000
+++ b/templates/README.all      Wed Feb 24 08:16:32 2021 +0000
@@ -1,4 +1,4 @@
-<!-- $NetBSD: README.all,v 1.9 2021/02/22 09:40:48 nia Exp $ -->
+<!-- $NetBSD: README.all,v 1.10 2021/02/24 08:16:32 nia Exp $ -->
 <!-- generated by pkgsrc/mk/scripts/mkreadme -->
 <!doctype html>
 <html lang="en">
@@ -23,10 +23,9 @@
 </p>
 
 <hr>
-<table>
-<tr><th>Package <th>Category <th>Package description
+<dl>
 %%PKGS%%
-</table>
+</dl>
 
 <hr>
 [



Home | Main Index | Thread Index | Old Index