jstm-optimized/cleantool.sh
JeremyStarTM 432c862334
Remove PKGBUILDs, use upstream
Upstream is now maintained by myself after metak, the previous maintainer, announced that he'd stop maintaining the linux-clear package.
Props to him for even creating the AUR package in the first place.
2024-08-06 21:17:23 +02:00

32 lines
736 B
Bash
Executable file

#!/bin/bash
echo ":: Cleaning built files"
[[ ! -d "kernel" ]] && exit
cd kernel
rm -rf linux-*.tar.xz \
linux-*.tar.sign \
linux-jstm-optimized-*.pkg.tar.zst \
linux-jstm-optimized-headers-*.pkg.tar.zst \
more-uarches-*.tar.gz \
patch-*.xz \
cl-linux \
pkg
[[ -d "src" ]] && (
while true; do
read -rp ":: Clean src/ directory too [y/N]? " CLEANTOOL_SRC
case "${CLEANTOOL_SRC}" in
"y"|"Y")
rm -rf src
break
;;
"n"|"N"|"")
break
;;
*)
echo ":: Error: Invalid answer. Please answer with Y or N"
;;
esac
done
)