From 26d78e9f3c13646e4e605dbc6a5964a01a0241a0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 25 Jan 2017 09:41:14 +0100 Subject: [PATCH] Fix build-script of imag-bin There was a breaking change in cargo which is fixed by this commit Affected: beta builds (as of writing of this commit). --- bin/build.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/build.rs b/bin/build.rs index 7e22b9b0..2be2c9fc 100644 --- a/bin/build.rs +++ b/bin/build.rs @@ -73,10 +73,12 @@ fn main() { .subcommand(build_subcommand!("tag", imagtag)) .subcommand(build_subcommand!("view", imagview)); + let outdir = std::env::var("OUT_DIR").unwrap(); + // Actually generates the completion files - app.gen_completions("imag", Shell::Bash, env!("OUT_DIR")); - app.gen_completions("imag", Shell::Fish, env!("OUT_DIR")); - app.gen_completions("imag", Shell::Zsh, env!("OUT_DIR")); + app.gen_completions("imag", Shell::Bash, outdir); + app.gen_completions("imag", Shell::Fish, outdir); + app.gen_completions("imag", Shell::Zsh, outdir); }