wip: scripts now clean after building

This commit is contained in:
DarthMooMancer
2025-07-26 18:12:13 -04:00
parent adc006271e
commit b079ef2bce
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ if [[ $- != *i* ]] ; then
fi
alias ls="ls -a --color"
alias comp="make && doas make install"
alias comp="make && doas make install && make clean"
alias edit="sh /home/andrew/.config/suckless/dwm/scripts/edit-suckless.sh"
alias update_world="doas emerge --ask --update --newuse --deep @world"
alias env="sh /home/andrew/dotfiles/env.sh"
@@ -53,7 +53,8 @@ AFTER_HASH=$(sha256sum config.h | cut -d ' ' -f1)
if [[ "$BEFORE_HASH" != "$AFTER_HASH" || "$REBUILD" == true ]]; then
echo "Rebuilding $APP..."
make
doas make clean install
doas make install
make clean
pkill dwm
else
echo "No changes detected. Skipping rebuild."
+1 -1
View File
@@ -58,5 +58,5 @@ fc-cache -f
echo -e "${GREEN}Rebuilding Suckless Software${RESET}"
for x in "${CONFIG}suckless"/*/; do
[[ -d "${x}" ]] || continue
cd "${x}" && make && doas make install
cd "${x}" && make && doas make install && make clean
done