From 862189277c9b048fc002deb5f128af2250fc1c75 Mon Sep 17 00:00:00 2001 From: Axel Kappel <69117984+Kl4rry@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:18:37 +0200 Subject: [PATCH] include man in crates release --- Cargo.lock | 4 ++-- Cargo.toml | 5 +++-- man/.gitignore | 1 - man/{ => mangen}/Cargo.toml | 2 +- man/{ => mangen}/src/main.rs | 2 +- man/simp.1 | 23 +++++++++++++++++++++++ 6 files changed, 30 insertions(+), 7 deletions(-) delete mode 100644 man/.gitignore rename man/{ => mangen}/Cargo.toml (72%) rename man/{ => mangen}/src/main.rs (78%) create mode 100644 man/simp.1 diff --git a/Cargo.lock b/Cargo.lock index 34415a9..8060adc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2252,7 +2252,7 @@ dependencies = [ ] [[package]] -name = "manpage" +name = "man" version = "0.1.0" dependencies = [ "clap_mangen", @@ -3426,7 +3426,7 @@ dependencies = [ [[package]] name = "simp" -version = "3.6.0" +version = "3.6.1" dependencies = [ "arboard", "bytemuck", diff --git a/Cargo.toml b/Cargo.toml index b6c5011..7baf395 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simp" -version = "3.6.0" +version = "3.6.1" authors = ["Axel Kappel"] edition = "2021" license = "Apache-2.0" @@ -10,6 +10,7 @@ repository = "https://github.com/Kl4rry/simp" categories = ["multimedia::images", "multimedia::encoding"] readme = "README.md" exclude = ["images", ".github"] +include = ["man/simp.1"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] @@ -90,7 +91,7 @@ jxl = ["dep:jpegxl-rs"] heif = ["dep:libheif-rs"] [workspace] -members = ["man"] +members = ["man/mangen"] # Config for 'cargo dist' [workspace.metadata.dist] diff --git a/man/.gitignore b/man/.gitignore deleted file mode 100644 index ca62e7f..0000000 --- a/man/.gitignore +++ /dev/null @@ -1 +0,0 @@ -simp.1 \ No newline at end of file diff --git a/man/Cargo.toml b/man/mangen/Cargo.toml similarity index 72% rename from man/Cargo.toml rename to man/mangen/Cargo.toml index 10bdff1..8b962bf 100644 --- a/man/Cargo.toml +++ b/man/mangen/Cargo.toml @@ -5,4 +5,4 @@ edition = "2021" [dependencies] clap_mangen = "0.2.21" -simp = { version = "*", path = ".."} +simp = { path = "../../"} diff --git a/man/src/main.rs b/man/mangen/src/main.rs similarity index 78% rename from man/src/main.rs rename to man/mangen/src/main.rs index 39bcf99..135bb28 100644 --- a/man/src/main.rs +++ b/man/mangen/src/main.rs @@ -3,5 +3,5 @@ fn main() { let man = clap_mangen::Man::new(cmd); let mut buffer: Vec = Default::default(); man.render(&mut buffer).unwrap(); - std::fs::write("simp.1", buffer).unwrap(); + std::fs::write("../simp.1", buffer).unwrap(); } diff --git a/man/simp.1 b/man/simp.1 new file mode 100644 index 0000000..9c7cbd5 --- /dev/null +++ b/man/simp.1 @@ -0,0 +1,23 @@ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.TH simp 1 "simp 3.6.1" +.SH NAME +simp \- The simple image manipulation program +.SH SYNOPSIS +\fBsimp\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIFILE\fR] +.SH DESCRIPTION +The simple image manipulation program +.SH OPTIONS +.TP +\fB\-h\fR, \fB\-\-help\fR +Print help +.TP +\fB\-V\fR, \fB\-\-version\fR +Print version +.TP +[\fIFILE\fR] +Load this file +.SH VERSION +v3.6.1 +.SH AUTHORS +Axel Kappel