2023-11-26 21:04:58 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash --pure
|
|
|
|
#! nix-shell -p bash findutils git gnumake
|
2017-02-12 11:41:03 +01:00
|
|
|
|
|
|
|
# Removes files that can be regenerated
|
|
|
|
# from a dev environment
|
|
|
|
|
|
|
|
find . -type d -name bower_components -or -name node_modules -print0 | while read file; do
|
|
|
|
rm -rf "$file"
|
|
|
|
done
|
|
|
|
find . -type f -name Makefile -print0 | while IFS= read -r -d '' file; do
|
|
|
|
echo "--> $file"
|
|
|
|
(cd "${file//Makefile}"; make clean)
|
|
|
|
done
|
|
|
|
find . -type d -name .git -print0 | while IFS= read -r -d '' dir; do
|
|
|
|
echo "--> $file"
|
|
|
|
(cd "$dir"; git gc)
|
|
|
|
done
|