parent
412e71d684
commit
20a6f94a8e
14
Makefile
14
Makefile
|
@ -1,11 +1,21 @@
|
|||
PREFIX ?= /usr/local
|
||||
BINDIR ?= ${PREFIX}/bin
|
||||
MANDIR ?= ${PREFIX}/share/man
|
||||
|
||||
all: mycfetch
|
||||
|
||||
install: mycfetch
|
||||
install -m 555 mycfetch $(PREFIX)/bin/
|
||||
mycfetch: config.h defs.h
|
||||
|
||||
clean:
|
||||
rm -f mycfetch
|
||||
|
||||
install: mycfetch mycfetch.1
|
||||
install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1
|
||||
install mycfetch ${DESTDIR}${BINDIR}
|
||||
install -m 644 mycfetch.1 ${DESTDIR}${MANDIR}/man1
|
||||
|
||||
uninstall:
|
||||
rm -f ${DESTDIR}${BINDIR}/mycfetch
|
||||
rm -f ${DESTDIR}${MANDIR}/man1/mycfetch.1
|
||||
|
||||
.PHONY: all install clean
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
.Dd August 23, 2024
|
||||
.Dt MYCFETCH 1
|
||||
.Os
|
||||
.
|
||||
.Sh NAME
|
||||
.Nm mycfetch
|
||||
.Nd System info fetcher
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Ar artname
|
||||
.
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
shows you some information about computer. On the left you will see some cute
|
||||
ascii art, one the right -
|
||||
.Ql user@host ,
|
||||
kernel name and version, and current uptime.
|
||||
.Pp
|
||||
.
|
||||
Arts are added to
|
||||
.Nm
|
||||
through
|
||||
.Ql config.h
|
||||
file.
|
||||
.
|
||||
.Bl -tag -width Ds
|
||||
.It Ar artname
|
||||
Name of the art to show on the left.
|
||||
.
|
||||
.Sh EXIT STATUS
|
||||
.Nm
|
||||
returns 0 if done without errors or 69 if art is not found.
|
||||
.
|
||||
.Sh EXAMPLES
|
||||
For example,
|
||||
.Bd -literal -offset indent
|
||||
$ mycfetch cat
|
||||
.Ed
|
||||
Will show cat on the left with some system info.
|
||||
.Ql cat
|
||||
can be ommited because it's the first entry in the config.
|
||||
.Bd -literal -offset indent
|
||||
╱|、 naki@nakidai
|
||||
(˚ˎ。7 --
|
||||
| 、˜〵 Linux 6.10.4-arch2-1
|
||||
じしˍ,)ノ Up 1 days, 5 hours, 23 minutes
|
||||
.Ed
|
||||
.
|
||||
.Sh STANDARDS
|
||||
.Nm
|
||||
is
|
||||
.St -p1003.1-2004
|
||||
compatible, while also uses
|
||||
.Fn "int clock_gettime" "clockid_t" "struct timespec *"
|
||||
from
|
||||
.St -p1003.1b
|
||||
.Sy TMR
|
||||
extension.
|
||||
.
|
||||
.Sh AUTHORS
|
||||
.An Nakidai Perumenei Aq Mt plaza521@inbox.ru
|
||||
.
|
Loading…
Reference in New Issue