Task 5, 5* some fixes and cleanup
This commit is contained in:
parent
64c7aed176
commit
c8bf307391
154 changed files with 214852 additions and 94 deletions
42
clean_all.sh
Executable file
42
clean_all.sh
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "Searching for Makefiles..."
|
||||
|
||||
# Find all directories containing a Makefile
|
||||
find . -type f \( -iname "makefile" -o -iname "Makefile" \) | while read -r mk; do
|
||||
dir=$(dirname "$mk")
|
||||
|
||||
# Check if Makefile contains a clean target
|
||||
if grep -qE '^[[:space:]]*clean[: ]' "$mk"; then
|
||||
echo "→ Found clean target in: $dir"
|
||||
echo " Running make clean..."
|
||||
|
||||
(cd "$dir" && make clean)
|
||||
|
||||
echo " Done."
|
||||
else
|
||||
echo "→ No clean target in: $dir"
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "─────────────────────────────"
|
||||
echo "Deleting extra files"
|
||||
echo "─────────────────────────────"
|
||||
|
||||
echo "→ Deleting .Identifier files"
|
||||
find . -type f -name ".Identifier" -print -delete
|
||||
|
||||
echo "→ Deleting *:Zone.Identifier files"
|
||||
find . -type f -name "*:Zone.Identifier" -print -delete
|
||||
|
||||
echo "→ Deleting all .o object files"
|
||||
find . -type f -name "*.o" -print -delete
|
||||
|
||||
echo "→ Deleting all .GCC_ files"
|
||||
find . -type f -name "*.GCC_" -print -delete
|
||||
|
||||
echo ""
|
||||
echo "Cleanup complete."
|
||||
Binary file not shown.
BIN
sheet1/F/main.o
BIN
sheet1/F/main.o
Binary file not shown.
|
|
@ -1,3 +0,0 @@
|
|||
[ZoneTransfer]
|
||||
ZoneId=3
|
||||
HostUrl=https://imsc.uni-graz.at/haasegu/Lectures/Math2CPP/Examples/goldbach/mayer_primes.h
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue