summaryrefslogtreecommitdiffstats
path: root/sqv
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-20 20:50:59 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-20 20:50:59 +0200
commit9e6d056dab32abd1f8381a701e1cd00d4fb8c660 (patch)
tree997270a8770670ef9c9b2744e6327188b60ed810 /sqv
parent8135721fab4564b7e2391ee898213cf5a91bf1fa (diff)
sqv, tool: Make build script more robust.
- Create $CARGO_TARGET_DIR first. Fixes a build problem if $CARGO_TARGET_DIR does not exist when the build script is run.
Diffstat (limited to 'sqv')
-rw-r--r--sqv/build.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/sqv/build.rs b/sqv/build.rs
index c0f21c05..ea6513b1 100644
--- a/sqv/build.rs
+++ b/sqv/build.rs
@@ -1,6 +1,7 @@
extern crate clap;
use std::env;
+use std::fs;
use clap::Shell;
mod sqv_cli {
@@ -12,6 +13,7 @@ fn main() {
None => return,
Some(outdir) => outdir,
};
+ fs::create_dir_all(&outdir).unwrap();
let mut sqv = sqv_cli::build();
for shell in &[Shell::Bash, Shell::Fish, Shell::Zsh, Shell::PowerShell,
Shell::Elvish] {