Files
regorus/build.rs
Anand Krishnamoorthi cb0b3a1790 Code from github.com/anakrish/rego-rs
Authored by anakrish and mingweishih

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2023-02-09 10:56:54 -08:00

11 lines
343 B
Rust

// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
use anyhow::Result;
fn main() -> Result<()> {
// Copy hooks to appropriate location so that git will run them.
std::fs::copy("./scripts/pre-commit", "./.git/hooks/pre-commit")?;
std::fs::copy("./scripts/pre-push", "./.git/hooks/pre-push")?;
Ok(())
}