Compare commits
6 Commits
v1.0
...
d4f0f15341
Author | SHA1 | Date | |
---|---|---|---|
d4f0f15341 | |||
962c54b8e0 | |||
ebdf36d3c0 | |||
858d44b5ca | |||
e18136e43c | |||
d692d4aa59 |
20
Makefile
20
Makefile
@ -20,20 +20,26 @@
|
|||||||
# 3. This notice may not be removed or altered from any source
|
# 3. This notice may not be removed or altered from any source
|
||||||
# distribution.
|
# distribution.
|
||||||
|
|
||||||
PREFIX=/usr/local
|
ifeq ($(PREFIX),)
|
||||||
|
PREFIX := /usr/local
|
||||||
pacundo: pacundo.pl
|
endif
|
||||||
pp -o $@ $^
|
|
||||||
|
|
||||||
pacundo.1.gz: pacundo.1
|
pacundo.1.gz: pacundo.1
|
||||||
gzip -c $^ > $@
|
gzip -c $^ > $@
|
||||||
|
|
||||||
.PHONY: install clean
|
.PHONY: clean doc install uninstall
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) pacundo
|
|
||||||
$(RM) pacundo.1.gz
|
$(RM) pacundo.1.gz
|
||||||
|
|
||||||
|
doc: pacundo.1.gz
|
||||||
|
|
||||||
install: pacundo pacundo.1.gz
|
install: pacundo pacundo.1.gz
|
||||||
install -m 755 pacundo $(PREFIX)/bin/
|
install -d $(PREFIX)/bin
|
||||||
|
install -m 755 pacundo.pl $(PREFIX)/bin/pacundo
|
||||||
|
install -d $(PREFIX)/share/man/man1
|
||||||
install -m 644 pacundo.1.gz $(PREFIX)/share/man/man1/
|
install -m 644 pacundo.1.gz $(PREFIX)/share/man/man1/
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
$(RM) $(PREFIX)/bin/pacundo
|
||||||
|
$(RM) $(PREFIX)/share/man/man1/pacundo.1.gz
|
||||||
|
@ -11,13 +11,12 @@ to boot from a USB depending on just how broken it is).
|
|||||||
|
|
||||||
- Perl 5
|
- Perl 5
|
||||||
- `File::ReadBackwards` module
|
- `File::ReadBackwards` module
|
||||||
- PAR Packager (for compiling)
|
|
||||||
- GNU Makefile
|
- GNU Makefile
|
||||||
|
|
||||||
You can install these packages with the following command:
|
You can install these packages with the following command:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
# pacman -S perl perl-file-readbackwards perl-par-packer
|
# pacman -S perl perl-file-readbackwards
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiling & Installing
|
### Compiling & Installing
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.TH PACUNDO "1" "April 2024" "pacundo 1.0" "User Commands"
|
.TH PACUNDO "1" "April 2024" "pacundo 1.0.1" "User Commands"
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
pacundo - A time machine to return your ArchLinux machine back to a working state.
|
pacundo - A time machine to roll back your ArchLinux machine to a working state.
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
.B pacundo
|
.B pacundo
|
||||||
[\fI\-i\fR|\fI\-r\fR] [\fI\-t\fR <\fInum\fR>] [\fI\-d\fR]
|
[\fI\-i\fR|\fI\-r\fR] [\fI\-t\fR <\fInum\fR>] [\fI\-d\fR]
|
||||||
|
@ -29,7 +29,7 @@ use feature qw(signatures);
|
|||||||
use Getopt::Std;
|
use Getopt::Std;
|
||||||
use File::ReadBackwards;
|
use File::ReadBackwards;
|
||||||
|
|
||||||
my $VERSION = '1.0';
|
my $VERSION = '1.0.1';
|
||||||
my $PROG_NAME = 'pacundo';
|
my $PROG_NAME = 'pacundo';
|
||||||
|
|
||||||
sub print_version() {
|
sub print_version() {
|
||||||
@ -39,7 +39,7 @@ sub print_version() {
|
|||||||
|
|
||||||
sub print_help() {
|
sub print_help() {
|
||||||
&print_version();
|
&print_version();
|
||||||
print("A time machine to return your ArchLinux machine back to a working state.
|
print("A time machine to roll back your ArchLinux machine to a working state.
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
$PROG_NAME [-i|-r] [-t <num>] [-d]
|
$PROG_NAME [-i|-r] [-t <num>] [-d]
|
||||||
|
Reference in New Issue
Block a user