From a4b95979b59c14836f24c06d56663c9a9e5b4cf1 Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Thu, 4 Aug 2022 02:03:46 +0500 Subject: [PATCH] Revert "Docs: add proper date to man page" This reverts commit 2e314e10ea3810ecb06937b6e175328ef59ee186. --- Makefile | 1 - doc/ctpv.1 | 2 +- updatedate.awk | 15 --------------- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100755 updatedate.awk diff --git a/Makefile b/Makefile index 1c33628..1952e7d 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,6 @@ clean: docs: README.md doc/ctpv.1 deptable/list.awk $(PRE) | deptable/markdown.sed | deptable/insert.awk README.md deptable/list.awk $(PRE) | deptable/roff.sed | deptable/insert.awk doc/ctpv.1 - ./updatedate.awk doc/ctpv.1 ctpv: $(OBJ) $(CC) -o $@ $+ $(LDFLAGS) diff --git a/doc/ctpv.1 b/doc/ctpv.1 index 776d246..21ea9a8 100644 --- a/doc/ctpv.1 +++ b/doc/ctpv.1 @@ -14,7 +14,7 @@ \&\fB\\$1\fP \fI\\$2\fP\\$3 .. . -.TH CTPV 1 2022-08-02 Linux "User Manuals" +.TH CTPV 1 2022 Linux "User Manuals" . .SH NAME ctpv \- terminal previewer diff --git a/updatedate.awk b/updatedate.awk deleted file mode 100755 index fb37295..0000000 --- a/updatedate.awk +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/gawk -f - -@include "inplace" - -BEGIN { - FS = " " -} - -/^\.TH / { - cmd = "date +%Y-%m-%d" - cmd | getline $4 - close(cmd) -} - -{ print }