From b031068621e935ab6359a8fa6bae07090f8f26c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D1=80=D0=B0=D1=85=D0=B8=D1=9A=D0=B0=20=D0=A0?= =?UTF-8?q?=D0=B0=D0=B4=D0=B8=D1=9B?= Date: Sat, 29 Jun 2024 14:06:09 +0000 Subject: [PATCH] lib/makedate: Convert month name to appease mandoc -Tlint; manpage fixes for mandb --- lib/makedate | 15 ++++++++++++++- table.1.in | 8 +++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/lib/makedate b/lib/makedate index 6cc0fe2..fee7764 100755 --- a/lib/makedate +++ b/lib/makedate @@ -9,7 +9,20 @@ if [ -d .got ] && command -v got >/dev/null 2>&1; then awk ' /^date: / { sub(/^date: /,"",$0) - print $2 " " $3 ", " $5 + # Convert to proper form for `mandoc -Tlint` + month_names["Jan"] = "January" + month_names["Feb"] = "February" + month_names["Mar"] = "March" + month_names["Apr"] = "April" + month_names["May"] = "May" + month_names["Jun"] = "June" + month_names["Jul"] = "July" + month_names["Aug"] = "August" + month_names["Sep"] = "September" + month_names["Oct"] = "October" + month_names["Nov"] = "November" + month_names["Dec"] = "December" + print month_names[$2] " " $3 ", " $5 exit }' >date.new elif [ -d .git ] && command -v git >/dev/null 2>&1; then diff --git a/table.1.in b/table.1.in index 6133f3a..4c84878 100644 --- a/table.1.in +++ b/table.1.in @@ -28,10 +28,8 @@ .Op Ar pathname .Sh COMMAND ALIASES .Bl -column -offset 1m "123456" -.It Nm tablep -.Ta is a synonym for Ql "table -p" . -.It Nm tsvtable -.Ta is a synonym for Ql "table -d \(dq$(printf '\et')\(dq -q ignore" . +.It Nm tablep Ta is a synonym for Ql "table -p" . +.It Nm tsvtable Ta is a synonym for Ql "table -d \(dq$(printf '\et')\(dq -q ignore" . .El . .Sh DESCRIPTION @@ -77,7 +75,7 @@ Set maximum table width in columns (default 80). Set alignment character to dot .Dq "." instead of a space -.Dq " " Ns . +.Dq "\ " Ns . .It Fl d Ar delim , Fl \-delimiter= Ns Ar delim Set field delimiter (default .Do , Dc Ns ). -- 2.45.2