Revert "Docs: add proper date to man page"

This reverts commit 2e314e10ea.
This commit is contained in:
Nikita Ivanov 2022-08-04 02:03:46 +05:00
parent 1eff006767
commit a4b95979b5
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
3 changed files with 1 additions and 17 deletions

View File

@ -45,7 +45,6 @@ clean:
docs: README.md doc/ctpv.1 docs: README.md doc/ctpv.1
deptable/list.awk $(PRE) | deptable/markdown.sed | deptable/insert.awk README.md 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 deptable/list.awk $(PRE) | deptable/roff.sed | deptable/insert.awk doc/ctpv.1
./updatedate.awk doc/ctpv.1
ctpv: $(OBJ) ctpv: $(OBJ)
$(CC) -o $@ $+ $(LDFLAGS) $(CC) -o $@ $+ $(LDFLAGS)

View File

@ -14,7 +14,7 @@
\&\fB\\$1\fP \fI\\$2\fP\\$3 \&\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 .SH NAME
ctpv \- terminal previewer ctpv \- terminal previewer

View File

@ -1,15 +0,0 @@
#!/usr/bin/gawk -f
@include "inplace"
BEGIN {
FS = " "
}
/^\.TH / {
cmd = "date +%Y-%m-%d"
cmd | getline $4
close(cmd)
}
{ print }