From 968df54f596b40171e3388fd17bf6d44f99b4ae4 Mon Sep 17 00:00:00 2001 From: Andrew Rioux Date: Sun, 7 May 2023 18:12:28 -0400 Subject: [PATCH] build: added auto deleting of configure~ for git --- nl-sys/build.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nl-sys/build.rs b/nl-sys/build.rs index e1e1361..ce00bf6 100644 --- a/nl-sys/build.rs +++ b/nl-sys/build.rs @@ -13,7 +13,9 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -fn main() { +use std::fs; + +fn main() -> std::io::Result<()> { cc::Build::new().file("src/bridge.c").compile("bridge"); let dst = autotools::Config::new("libnl").reconf("-vi").build(); @@ -21,4 +23,8 @@ fn main() { println!("cargo:rustc-link-search=native={}/lib", dst.display()); println!("cargo:rustc-link-lib=static=nl-3"); println!("cargo:rustc-link-lib=static=nl-route-3"); + + fs::remove_file("libnl/configure~")?; + + Ok(()) }