4 changed files with 96 additions and 10 deletions
@ -0,0 +1,15 @@ |
|||
PREFIX ?= /usr |
|||
MANDIR ?= $(PREFIX)/share/man |
|||
|
|||
all: |
|||
echo Run \'make install\' to install upt. |
|||
|
|||
install: |
|||
mkdir -p $(DESTDIR)$(PREFIX)/bin |
|||
mkdir -p $(DESTDIR)$(MANDIR)/man1 |
|||
cp -p upt $(DESTDIR)$(PREFIX)/bin/upt |
|||
cp -p upt.1 $(DESTDIR)$(MANDIR)/man1 |
|||
|
|||
uninstall: |
|||
rm -rf $(DESTDIR)$(PREFIX)/bin/upt |
|||
rm -rf $(DESTDIR)$(MANDIR)/man1/upt.1* |
@ -0,0 +1,41 @@ |
|||
.TH UPT "1" "Mar 2022" "UPT 0.0.1" "Tempo de atividade do sistema" |
|||
.\" Text automatically generated by txt2man |
|||
.RS |
|||
.SH NOME |
|||
\fBupt\fP - Exibe o tempo de atividade do sistema. |
|||
.SH SINOPSE |
|||
.nf |
|||
.fam C |
|||
\fBupt\fP [OPÇÕES] |
|||
.fam T |
|||
.fi |
|||
.fam T |
|||
.fi |
|||
.SH DESCRIÇÃO |
|||
Quando executado sem opções, \fBupt\fP exibe o tempo total de atividade do sistema com as informações de \fBDIAS\fP, \fBHORAS\fP e \fBMINUTOS\fP seguidas de suas respectivas unidades. As informações com valor `0' (zero), são ocultadas. Para obter a data e o horário do início das atividades, utiliza-se a opção \fB-s\fP. |
|||
.SH OPÇÕES |
|||
.TP |
|||
\fB-d\fP |
|||
Exibe tempos de atividade separados por vírgulas. |
|||
.TP |
|||
\fB-p\fP |
|||
Exibe prefixo antes do tempo de atividade. |
|||
.TP |
|||
\fB-s\fP |
|||
Data e hora do início da atividade do sistema. |
|||
.TP |
|||
\fB-h\fP |
|||
Exibe ajuda e sai. |
|||
.SH SEE ALSO |
|||
<https://git.blauaraujo.com/blau_araujo/upt> |
|||
.SH REPORTING BUGS |
|||
<https://git.blauaraujo.com/blau_araujo/upt/issues> |
|||
.SH AUTHORS |
|||
Written by Blau Araujo <blau@debxp.org> |
|||
.SH COPYRIGHT |
|||
Copyright©2022, Blau Araujo. |
|||
.PP |
|||
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. |
|||
.PP |
|||
This is free software: you are free to change and redistribute it. There is NO WARRANTY, |
|||
to the extent permitted by law. |
Loading…
Reference in new issue