aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
blob: ec55bf86e4b1d0704fae81d27b8e492cc980af13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{env, process};
use xtask::{assemble_blobs, check_blobs};

fn main() {
    let subcommand = env::args().skip(1).next();
    match subcommand.as_ref().map(|s| &**s) {
        Some("assemble") => assemble_blobs(),
        Some("check-blobs") => check_blobs(),
        _ => {
            eprintln!("usage: cargo xtask <subcommand>");
            eprintln!();
            eprintln!("subcommands:");
            eprintln!("    assemble     Reassemble the pre-built artifacts");
            eprintln!("    check-blobs  Check that the pre-built artifacts are up-to-date and reproducible");
            process::exit(1);
        }
    }
}