From 2e90e25a47b2cc0db570672387a627e8d64fa128 Mon Sep 17 00:00:00 2001
From: Andrews Cordolino Sobral <andrewssobral@gmail.com>
Date: Sat, 16 Mar 2024 14:02:42 +0100
Subject: [PATCH] Updated build dir

---
 build/.gitignore                              |  3 ++-
 build/clean.sh                                | 21 +++++++++++++++++++
 ...-from-cmake.sh => uninstall-from-cmake.sh} |  0
 modules/pybind11                              |  2 +-
 4 files changed, 24 insertions(+), 2 deletions(-)
 create mode 100755 build/clean.sh
 rename build/{.uninstall-from-cmake.sh => uninstall-from-cmake.sh} (100%)
 mode change 100644 => 100755

diff --git a/build/.gitignore b/build/.gitignore
index d12a4fa..9e7d797 100644
--- a/build/.gitignore
+++ b/build/.gitignore
@@ -2,4 +2,5 @@
 *
 # Except these files
 !.gitignore
-!.uninstall-from-cmake.sh
+!uninstall-from-cmake.sh
+!clean.sh
\ No newline at end of file
diff --git a/build/clean.sh b/build/clean.sh
new file mode 100755
index 0000000..42effbc
--- /dev/null
+++ b/build/clean.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Navigating to the script's directory (if needed)
+# cd "$(dirname "$0")"
+
+# Exclude files from deletion
+excludes=( ".gitignore" "uninstall-from-cmake.sh" "clean.sh" )
+
+# Create the find command excluding specified files
+find_command="find . -mindepth 1"
+for exclude in "${excludes[@]}"; do
+    find_command+=" ! -name $exclude"
+done
+
+# Append action to delete
+find_command+=" -delete"
+
+# Execute the command
+eval $find_command
+
+echo "Directory cleaned, except for specified exclusions."
diff --git a/build/.uninstall-from-cmake.sh b/build/uninstall-from-cmake.sh
old mode 100644
new mode 100755
similarity index 100%
rename from build/.uninstall-from-cmake.sh
rename to build/uninstall-from-cmake.sh
diff --git a/modules/pybind11 b/modules/pybind11
index 8a099e4..65bbd4e 160000
--- a/modules/pybind11
+++ b/modules/pybind11
@@ -1 +1 @@
-Subproject commit 8a099e44b3d5f85b20f05828d919d2332a8de841
+Subproject commit 65bbd4e0b210655a981be91ae2d3daca358f30f8
-- 
GitLab