mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-26 04:08:36 -06:00
Created a Makefile and fixed manpage
This commit is contained in:
parent
4105e61829
commit
4dff4ba511
3 changed files with 29 additions and 1 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
PREFIX := /usr/local
|
||||||
|
PKGNAME := movie-rename
|
||||||
|
|
||||||
|
build:
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
build-debug:
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
clean:
|
||||||
|
cargo clean
|
||||||
|
|
||||||
|
install: build
|
||||||
|
install -Dm755 target/release/$(PKGNAME) "$(DESTDIR)$(PREFIX)/bin/$(PKGNAME)"
|
||||||
|
install -Dm644 $(PKGNAME).1 "$(DESTDIR)$(PREFIX)/man/man1/$(PKGNAME).1"
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f "$(DESTDIR)$(PREFIX)/bin/$(PKGNAME)"
|
||||||
|
rm -f "$(DESTDIR)$(PREFIX)/man/man1/$(PKGNAME).1"
|
||||||
|
|
||||||
|
.PHONY: build build-debug install clean uninstall
|
|
@ -12,6 +12,13 @@ This is made mostly due to [mnamer](https://github.com/jkwill87/mnamer) not havi
|
||||||
## Installation
|
## Installation
|
||||||
Install from [AUR](https://aur.archlinux.org/packages/movie-rename-bin), my personal [lure-repo](https://github.com/SinTan1729/lure-repo) or download the binary from the releases. You can also get it from [crates.io](https://crates.io/crates/movie-rename).
|
Install from [AUR](https://aur.archlinux.org/packages/movie-rename-bin), my personal [lure-repo](https://github.com/SinTan1729/lure-repo) or download the binary from the releases. You can also get it from [crates.io](https://crates.io/crates/movie-rename).
|
||||||
|
|
||||||
|
You can also install from source by using
|
||||||
|
```
|
||||||
|
git clone https://github.com/SinTan1729/movie-rename
|
||||||
|
cd movie-rename
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
- The syntax is:
|
- The syntax is:
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.\" Manpage for movie-rename.
|
.\" Manpage for movie-rename.
|
||||||
.\" Contact sayantan[dot]santra689[at]gmail[dot]com to correct errors or typos.
|
.\" Contact sayantan[dot]santra689[at]gmail[dot]com to correct errors or typos.
|
||||||
.TH man 1 "08 Dec 2022" "1.1.1" "movie-rename man page"
|
.TH man 1 "February 2023" "movie-rename"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
movie-rename
|
movie-rename
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
Loading…
Reference in a new issue