summary refs log tree commit diff
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-07-11 18:59:31 -0700
committerIrene Knapp <ireneista@irenes.space>2026-07-11 18:59:31 -0700
commitcbb5c9dd231104820f2bf2c4e1689b097f93f236 (patch)
tree4a569c0919874b6b9734cbdc0446c9defb734a7b
parent429dbcb9e0fcbb0b1c800f928cccc3b06800e6a4 (diff)
skip dotfiles while compiling shaders
Force-Push: yeah of course
Change-Id: I2b8937b53e0c329f20ed51a9806ca2c085ecf9f0
-rw-r--r--build.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index 593ef3f..dde9a94 100644
--- a/build.rs
+++ b/build.rs
@@ -19,6 +19,13 @@ fn process_all () -> std::io::Result<()> {
       continue;
     }
 
+    if let Some(Some(filename)) = input_path.file_name()
+                                            .map(|name| name.to_str())
+       && filename.get(.. 1) == Some(".")
+    {
+      continue;
+    }
+
     let output_path
             = Path::new(&out_dir)
                   .join(format!("{}.spv",