Skip to content

Commit

Permalink
include man in crates release
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed Jun 9, 2024
1 parent e80a202 commit 8621892
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "simp"
version = "3.6.0"
version = "3.6.1"
authors = ["Axel Kappel"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down
1 change: 0 additions & 1 deletion man/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion man/Cargo.toml → man/mangen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ edition = "2021"

[dependencies]
clap_mangen = "0.2.21"
simp = { version = "*", path = ".."}
simp = { path = "../../"}
2 changes: 1 addition & 1 deletion man/src/main.rs → man/mangen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ fn main() {
let man = clap_mangen::Man::new(cmd);
let mut buffer: Vec<u8> = Default::default();
man.render(&mut buffer).unwrap();
std::fs::write("simp.1", buffer).unwrap();
std::fs::write("../simp.1", buffer).unwrap();
}
23 changes: 23 additions & 0 deletions man/simp.1
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8621892

Please sign in to comment.