Add manpages for countdown, line and sign

This commit is contained in:
Dylan Lom 2020-12-06 17:13:52 +11:00
parent e5f8df45b4
commit b9e2de053b
4 changed files with 52 additions and 3 deletions

View File

@ -12,11 +12,13 @@ distdir:
mkdir -p $(DISTBIN)
mkdir -p $(DISTMAN)/man1
line: $(SRCDIR)/line.c distdir
line: $(SRCDIR)/line.c $(SRCDIR)/line.1 distdir
cc -o $(DISTBIN)/line $(SRCDIR)/line.c
cp $(SRCDIR)/line.1 $(DISTMAN)/man1/line.1
sign: $(SRCDIR)/sign distdir
sign: $(SRCDIR)/sign $(SRCDIR)/sign.1 distdir
cp $(SRCDIR)/sign $(DISTBIN)/sign
cp $(SRCDIR)/sign.1 $(DISTMAN)/man1/sign.1
pasta: $(SRCDIR)/pasta distdir
cp $(SRCDIR)/pasta $(DISTBIN)/pasta
@ -25,8 +27,9 @@ suptime: $(SRCDIR)/suptime.c $(SRCDIR)/suptime.1 distdir
cc -o $(DISTBIN)/suptime $(SRCDIR)/suptime.c
cp $(SRCDIR)/suptime.1 $(DISTMAN)/man1/suptime.1
countdown: $(SRCDIR)/countdown.c distdir
countdown: $(SRCDIR)/countdown.c $(SRCDIR)/countdown.1 distdir
cc -o $(DISTBIN)/countdown $(SRCDIR)/countdown.c
cp $(SRCDIR)/countdown.1 $(DISTMAN)/man1/countdown.1
stopwatch: $(SRCDIR)/stopwatch.c $(SRCDIR)/stopwatch.1 distdir
cc -o $(DISTBIN)/stopwatch $(SRCDIR)/stopwatch.c

21
src/countdown.1 Normal file
View File

@ -0,0 +1,21 @@
.TH COUNTDOWN 1
.SH NAME
countdown \- start a countdown timer
.SH SYNOPSIS
.B countdown
.IR time
.SH DESCRIPTION
.B countdown
counts down from \fItime\fR to 0 seconds.
.SH OPTIONS
.TP
.I time
The time in seconds to countdown from.
.SH EXAMPLES
Start a 5 second countdown
.PP
.nf
.RS
countdown 5
.RE
.fi

17
src/line.1 Normal file
View File

@ -0,0 +1,17 @@
.TH LINE 1
.SH NAME
line \- extract line from input
.SH SYNOPSIS
.B line
.IR ln
.SH DESCRIPTION
.B line
extracts the ln'th line from input provided over STDIN
.SH EXAMPLES
Get the 3rd line from the file line.1
.PP
.nf
.RS
line 3 < line.1
.RE
.fi

8
src/sign.1 Normal file
View File

@ -0,0 +1,8 @@
.TH SIGN 1
.SH NAME
sign \- generate a signature
.SH SYNOPSIS
.B sign
.SH DESCRIPTION
.B sign
generates a signature by combining the current user, hostname and date