From 75f14d23a3be0951bc409a244e57c1c4d6501e10 Mon Sep 17 00:00:00 2001 From: ariasuni Date: Thu, 6 May 2021 02:21:06 +0200 Subject: [PATCH 1/2] Update Cargo.toml to make cargo-deb work again --- Cargo.toml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index abb484d..d2923f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "exa" description = "A modern replacement for ls" - authors = ["Benjamin Sago "] categories = ["command-line-utilities"] edition = "2018" exclude = ["/devtools/*", "/Justfile", "/Vagrantfile", "/screenshots.png"] +readme = "README.md" homepage = "https://the.exa.website/" license = "MIT" repository = "https://github.com/ogham/exa" @@ -63,7 +63,7 @@ lto = true [package.metadata.deb] -license-file = [ "LICENCE" ] +license-file = [ "LICENCE", "4" ] depends = "$auto" extended-description = """ exa is a replacement for ls written in Rust. @@ -72,6 +72,9 @@ section = "utils" priority = "optional" assets = [ [ "target/release/exa", "/usr/bin/exa", "0755" ], - [ "contrib/man/exa.1", "/usr/share/man/man1/exa.1", "0644" ], - [ "contrib/completions.bash", "/etc/bash_completion.d/exa", "0644" ], + [ "target/release/../man/exa.1", "/usr/share/man/man1/exa.1", "0644" ], + [ "target/release/../man/exa_colors.5", "/usr/share/man/man5/exa_colors.5", "0644" ], + [ "completions/bash/exa", "/usr/share/bash-completion/completions/exa", "0644" ], + [ "completions/zsh/_exa", "/usr/share/zsh/site-functions/_exa", "0644" ], + [ "completions/fish/exa.fish", "/usr/share/fish/vendor_completions.d/exa.fish", "0644" ], ] From d2b6cc918525c3283cd4d9cc43920f780137a9d7 Mon Sep 17 00:00:00 2001 From: ariasuni Date: Thu, 6 May 2021 02:21:33 +0200 Subject: [PATCH 2/2] Update build.rs to print path when writing version_string.txt fails --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index f27aa24..a0a1351 100644 --- a/build.rs +++ b/build.rs @@ -38,9 +38,10 @@ fn main() -> io::Result<()> { // We need to create these files in the Cargo output directory. let out = PathBuf::from(env::var("OUT_DIR").unwrap()); + let path = &out.join("version_string.txt"); // Bland version text - let mut f = File::create(&out.join("version_string.txt"))?; + let mut f = File::create(path).expect(&path.to_string_lossy()); writeln!(f, "{}", strip_codes(&ver))?; Ok(())