mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-01-06 00:28:49 +01:00
Docs: add proper date to man page
This commit is contained in:
parent
2e0827a873
commit
2e314e10ea
1
Makefile
1
Makefile
@ -43,6 +43,7 @@ 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)
|
||||
|
@ -14,7 +14,7 @@
|
||||
\&\fB\\$1\fP \fI\\$2\fP\\$3
|
||||
..
|
||||
.
|
||||
.TH CTPV 1 "July 2022" Linux "User Manuals"
|
||||
.TH CTPV 1 2022-07-31 Linux "User Manuals"
|
||||
.
|
||||
.SH NAME
|
||||
ctpv \- terminal previewer
|
||||
|
15
updatedate.awk
Executable file
15
updatedate.awk
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/gawk -f
|
||||
|
||||
@include "inplace"
|
||||
|
||||
BEGIN {
|
||||
FS = " "
|
||||
}
|
||||
|
||||
/^\.TH / {
|
||||
cmd = "date +%Y-%m-%d"
|
||||
cmd | getline $4
|
||||
close(cmd)
|
||||
}
|
||||
|
||||
{ print }
|
Loading…
Reference in New Issue
Block a user