-
-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bab70e
commit 2e90e25
Showing
4 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
* | ||
# Except these files | ||
!.gitignore | ||
!.uninstall-from-cmake.sh | ||
!uninstall-from-cmake.sh | ||
!clean.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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." |
0
build/.uninstall-from-cmake.sh → build/uninstall-from-cmake.sh
100644 → 100755
File renamed without changes.
Submodule pybind11
updated
82 files