summaryrefslogtreecommitdiff
path: root/bin/clean
blob: 75eb89e7f8a1e31c457f28f30fd01495f01ce692 (plain)
1
2
3
4
5
6
7
8
9
#! /bin/bash
dotdir=/home/urbain/dotfiles
for file in `ls -A --ignore="install.sh" --ignore="README.md" --ignore=".git*"`; do
    if [[ -f $file/Makefile ]]; then
        cd $file && make clean && cd $dotdir
    else
        rm -f $HOME/$file
    fi
done