aboutsummaryrefslogtreecommitdiff
path: root/summary/clean.sh
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2024-10-15 16:08:16 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2024-10-15 16:08:16 +0200
commit385cc92bc91e1a6c3724085c060e76bf40c13ed3 (patch)
tree26d0a8f81f2caa472830fd40a51844bb202c1355 /summary/clean.sh
Import PhD thesis
Diffstat (limited to 'summary/clean.sh')
-rwxr-xr-xsummary/clean.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/summary/clean.sh b/summary/clean.sh
new file mode 100755
index 0000000..0553bcc
--- /dev/null
+++ b/summary/clean.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+to_remove=$(cat .gitignore)
+
+rm -f $to_remove
+for subdir in $(ls -l src/ | grep '^d' | awk '{print $9}'); do
+ pushd src/$subdir >/dev/null
+ rm -f $to_remove
+ popd >/dev/null
+done
+
+clear
+ls -l