Skip to content

Commit 53b379f

Browse files
committed
release: 0.4.1
2 parents 094727d + 7c9c8bb commit 53b379f

6 files changed

Lines changed: 55 additions & 108 deletions

File tree

channelz/Cargo.toml

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[package]
22
name = "channelz"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
license = "WTFPL"
55
authors = ["Josh Stoik <josh@blobfolio.com>"]
66
edition = "2018"
77
description = "ChannelZ is a simple, fast, multi-threaded static Gzip/Brotli encoding tool for the CLI."
88
publish = false
9-
build = "build.rs"
109

1110
[package.metadata.deb]
1211
maintainer = "Josh Stoik <hello@blobfolio.com>"
@@ -23,13 +22,52 @@ In directory mode, only files with the following extensions will be looked at:\n
2322
css; eot; htm(l); ico; js; json; mjs; otf; rss; svg; ttf; txt; xhtm(l); xml; xsl"""
2423
assets = [
2524
["../target/x86_64-unknown-linux-gnu/release/channelz", "usr/bin/", "755"],
26-
["./misc/channelz.bash", "etc/bash_completion.d/", "644"],
27-
["./misc/channelz.1.gz", "usr/share/man/man1/", "644"],
25+
["../release/completions/channelz.bash", "etc/bash_completion.d/", "644"],
26+
["../release/man/channelz.1.gz", "usr/share/man/man1/", "644"],
2827
]
2928

30-
[build-dependencies.fyi_menu]
31-
git = "https://github.com/Blobfolio/fyi.git"
32-
branch = "master"
29+
[package.metadata.bashman]
30+
name = "ChannelZ"
31+
bash-dir = "../release/completions"
32+
man-dir = "../release/man"
33+
34+
[[package.metadata.bashman.switches]]
35+
long = "--clean"
36+
description = "Remove all existing *.gz *.br files before starting."
37+
38+
[[package.metadata.bashman.switches]]
39+
short = "-h"
40+
long = "--help"
41+
description = "Print help information."
42+
43+
[[package.metadata.bashman.switches]]
44+
short = "-p"
45+
long = "--progress"
46+
description = "Show progress bar while working."
47+
48+
[[package.metadata.bashman.switches]]
49+
short = "-V"
50+
long = "--version"
51+
description = "Print program version."
52+
53+
[[package.metadata.bashman.options]]
54+
short = "-l"
55+
long = "--list"
56+
label = "<FILE>"
57+
description = "Read file paths from this text file."
58+
path = true
59+
60+
[[package.metadata.bashman.arguments]]
61+
label = "<PATH(s)…>"
62+
description = "Any number of files and directories to crawl and crunch."
63+
64+
[[package.metadata.bashman.sections]]
65+
name = "FILE TYPES"
66+
inside = false
67+
lines = [
68+
"Static copies will only be generated for files with these extensions:",
69+
"css; eot; htm(l); ico; js; json; mjs; otf; rss; svg; ttf; txt; xhtm(l); xml; xsl"
70+
]
3371

3472
[dependencies.channelz_core]
3573
path = "../channelz_core"

channelz/build.rs

Lines changed: 0 additions & 77 deletions
This file was deleted.

channelz_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "channelz_core"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
license = "WTFPL"
55
authors = ["Josh Stoik <josh@blobfolio.com>"]
66
edition = "2018"

justfile

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,15 @@ bench-bin DIR NATIVE="":
150150

151151

152152
# Build Debian package!
153-
@build-deb: build-man build
153+
@build-deb: build
154+
# Do completions/man.
155+
cargo bashman -m "{{ pkg_dir1 }}/Cargo.toml"
156+
154157
# cargo-deb doesn't support target_dir flags yet.
155158
[ ! -d "{{ justfile_directory() }}/target" ] || rm -rf "{{ justfile_directory() }}/target"
156159
mv "{{ cargo_dir }}" "{{ justfile_directory() }}/target"
157160

158-
# First let's build the Rust bit.
161+
# Build the deb.
159162
cargo-deb \
160163
--no-build \
161164
-p {{ pkg_id }} \
@@ -165,21 +168,6 @@ bench-bin DIR NATIVE="":
165168
mv "{{ justfile_directory() }}/target" "{{ cargo_dir }}"
166169

167170

168-
# Build Man.
169-
@build-man:
170-
# Build with "man" feature, triggering MAN and BASH builds.
171-
RUSTFLAGS="{{ rustflags }}" cargo build \
172-
--bin "{{ pkg_id }}" \
173-
--release \
174-
--all-features \
175-
--target x86_64-unknown-linux-gnu \
176-
--target-dir "{{ cargo_dir }}"
177-
178-
# Fix permissions.
179-
just _fix-chmod "{{ pkg_dir1 }}/misc"
180-
just _fix-chown "{{ pkg_dir1 }}/misc"
181-
182-
183171
# Check Release!
184172
@check:
185173
# First let's build the Rust bit.
@@ -213,9 +201,7 @@ bench-bin DIR NATIVE="":
213201

214202

215203
# Build Docs.
216-
doc:
217-
#!/usr/bin/env bash
218-
204+
@doc:
219205
# Make sure nightly is installed; this version generates better docs.
220206
rustup install nightly
221207

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH "CHANNELZ" "1" "November 2020" "ChannelZ v0.4.0" "User Commands"
1+
.TH "CHANNELZ" "1" "November 2020" "ChannelZ v0.4.1" "User Commands"
22
.SH NAME
3-
ChannelZ \- Manual page for channelz v0.4.0.
3+
ChannelZ \- Manual page for channelz v0.4.1.
44
.SH DESCRIPTION
55
ChannelZ is a simple, fast, multi\-threaded static Gzip/Brotli encoding tool for the CLI.
66
.SS USAGE:
@@ -23,7 +23,7 @@ Print program version.
2323
.TP
2424
\fB\-l\fR, \fB\-\-list\fR <FILE>
2525
Read file paths from this text file.
26-
.SS <PATH(s)…>:
26+
.SS <PATH(S)…>:
2727
.TP
2828
Any number of files and directories to crawl and crunch.
2929
.SH FILE TYPES

0 commit comments

Comments
 (0)