summaryrefslogtreecommitdiff
path: root/bin/clean
blob: eb69236c2e27e835e9994d574c85704e238817dd (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 && cd $dotdir
    else
        rm -f $HOME/$file && ln -s $dotdir/$file $HOME/$file
    fi
done