get-cve 0.5.0

Tyr tools for CVE managing about installed products and their weaknesses
use std::process::Command;

fn main() {
    #[cfg(target_os = "linux")]
    Command::new("asciidoctor")
        .arg("-b")
        .arg("manpage")
        .arg("-o")
        .arg("../../target/docs/get-cve.1")
        .arg("docs/get-cve.adoc")
        .output()
        .expect("asciidoctor failed");

    #[cfg(not(target_os = "linux"))]
    Command::new("asciidoctor")
        .arg("-b")
        .arg("manpage")
        .arg("-o")
        .arg("../../target/docs/get-cve.1")
        .arg("docs/get-cve-common.adoc")
        .output()
        .expect("asciidoctor failed");

    Command::new("gzip")
        .arg("../../target/docs/get-cve.1")
        .output()
        .expect("Fail for gzip running");
}