finalize nc 1.0

This commit is contained in:
Liam Waldron 2023-04-14 12:43:14 -04:00
parent 77669fd246
commit 20709ae30d
3 changed files with 32 additions and 0 deletions

View File

@ -8,3 +8,5 @@ all: src/main.c src/printevents.c src/mkevent.c
install: src/nc
install src/nc $(PREFIX)/bin
install man/nc.1 $(PREFIX)/share/man/man1
gzip $(PREFIX)/share/man/man1/nc.1

9
config.mk Normal file
View File

@ -0,0 +1,9 @@
#
# config.mk
#
PREFIX = /usr
CC = cc
CFLAGS = -O2 -fstack-protector-strong -static -pie
LDFLAGS = -static

21
man/nc.1 Normal file
View File

@ -0,0 +1,21 @@
.\" Manpage for nc.
.TH man 1 "14 April 2023" "1.0" Everest Linux Manual"
.SH NAME
nc \- to-do list which outputs to the command line
.SH SYNPOSIS
nc -l -n DATE EVENT_NAME
.SH DESCRIPTION
nc is a to-do list. It outputs contents from a text file, defined in config.h (usually /etc/nc/events). nc is designed for *NIX systems.
.SH OPTIONS
.TP
.BR \-l
lists all events in NC_ENTRIES_FILE
.TP
.BR \-n DATE
creates a new event in NC_ENTRIES_FILE
.SH EXAMPLES
create an event due on date 4/15/23 with name "finish nc": $ nc -n 4/15/23 "finish nc"
.SH BUGS
Report all bugs on the issues page at https://git.everestlinux.org/EverestLinux/nc
.SH AUTHOR
Liam Waldron (liamwaldron@everestlinux.org)