summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-01-25 09:57:00 +0100
committerGitHub <noreply@github.com>2017-01-25 09:57:00 +0100
commitce36b38aa9ef25f8a0cc8f21860102b9950566a2 (patch)
tree4a22d9808867925ee8efa966cefb0fd2e0d9c265
parent6f564b5223f9ec811f21081db31e16eb77d6d634 (diff)
parent26d78e9f3c13646e4e605dbc6a5964a01a0241a0 (diff)
downloadimag-ce36b38aa9ef25f8a0cc8f21860102b9950566a2.zip
imag-ce36b38aa9ef25f8a0cc8f21860102b9950566a2.tar.gz
Merge pull request #862 from matthiasbeyer/fix-imag-bin-build
Fix build-script of imag-bin
-rw-r--r--bin/build.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/build.rs b/bin/build.rs
index 7e22b9b..2be2c9f 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);
}