site

My personal website.

Date: Tue, 13 Jul 2021 17:46:35 +0200

Stop depending on GNU awk extensions

Diffstat:

M generate                            |       5 +++--

1 file changed, 3 insertions(+), 2 deletions(-)

@@ -65,8 +65,9 @@ function join(array, start, end, sep,    result, i) {
         split(url, segments, "/");
         host = segments[3];
         if (match(url, /^gopher:\/\//)) {
-            itemtype = "h";
-            path = "/" join(segments, 4, length(segments), "/");
+            itemtype = "1";
+            for (i = 1; i in segments; i++);
+            path = "/" join(segments, 4, i - 1, "/");
             port = "70";
         } else if (match(url, /^http:\/\//)) {
             itemtype = "h";