diff --git a/Makefile b/Makefile index 05bbf89..dffcc71 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/countdown.1 b/src/countdown.1 new file mode 100644 index 0000000..80e504a --- /dev/null +++ b/src/countdown.1 @@ -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 diff --git a/src/line.1 b/src/line.1 new file mode 100644 index 0000000..f608585 --- /dev/null +++ b/src/line.1 @@ -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 diff --git a/src/sign.1 b/src/sign.1 new file mode 100644 index 0000000..707f761 --- /dev/null +++ b/src/sign.1 @@ -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