Create outdir

This commit is contained in:
Dennis Schwerdel 2020-09-25 00:47:30 +02:00
parent 3ef8753085
commit 1298ea5765
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ fn main() {
// Process manpage using asciidoctor command // Process manpage using asciidoctor command
println!("cargo:rerun-if-changed=vpncloud.adoc"); println!("cargo:rerun-if-changed=vpncloud.adoc");
fs::create_dir_all(&out_dir).unwrap();
fs::copy("vpncloud.adoc", Path::new(&out_dir).join("vpncloud.adoc")).unwrap(); fs::copy("vpncloud.adoc", Path::new(&out_dir).join("vpncloud.adoc")).unwrap();
match Command::new("asciidoctor") match Command::new("asciidoctor")
.args(&["-b", "manpage", "vpncloud.adoc"]) .args(&["-b", "manpage", "vpncloud.adoc"])