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