From b2f5793c2181c3e3a067816065e557f8cacf03a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 29 Apr 2024 18:53:57 +0200 Subject: [PATCH] Add manpage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicolás Ortega Froysa --- Makefile | 7 ++++++- pacundo.1 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 pacundo.1 diff --git a/Makefile b/Makefile index 2af1e57..d216b34 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,15 @@ PREFIX=/usr/local pacundo: pacundo.pl pp -o $@ $^ +pacundo.1.gz: pacundo.1 + gzip -c $^ > $@ + .PHONY: install clean clean: $(RM) pacundo + $(RM) pacundo.1.gz -install: pacundo +install: pacundo pacundo.1.gz install -m 755 pacundo $(PREFIX)/bin/ + install -m 644 pacundo.1.gz $(PREFIX)/share/man/man1/ diff --git a/pacundo.1 b/pacundo.1 new file mode 100644 index 0000000..092497b --- /dev/null +++ b/pacundo.1 @@ -0,0 +1,46 @@ +.TH PACUNDO "1" "April 2024" "pacundo 1.0" "User Commands" +.SH "NAME" +pacundo - A time machine to return your ArchLinux machine back to a working state. +.SH "SYNOPSIS" +.B pacundo +[\fI\-i\fR|\fI\-r\fR] [\fI\-t\fR <\fInum\fR>] [\fI\-d\fR] + +.B pacundo +\fI\-h\fR + +.B pacundo +\fI\-v\fR + +.SH "DESCRIPTION" +This program helps to undo the last pacman/yay transactions automatically, which +is especially helpful if the last update broke your system for some reason. + +\fBNote:\fR the term \fItransaction\fR refers to an operation done by pacman +(e.g. all packages upgraded by \fIpacman -Syu\fR). + +.SH "OPTIONS" +.TP +\fB\-i\fR +Interactively select the transactions to undo (default behavior) +.TP +\fB\-r\fR +Non-interactively undo transactions +.TP +\fB\-t\fR <\fInum\fR> +Select number of transactions to include (default: 1) +.TP +\fB\-h\fR +Show help information +.TP +\fB\-v\fR +Show program version + +.SH "AUTHOR" +Written by Nicolás A. Ortega Froysa. + +.SH "COPYRIGHT" +Copyright \(co 2024 Ortega Froysa, Nicolás A. . +License: ZLib License. + +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law.