summaryrefslogtreecommitdiff
path: root/bin/clean
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-09-16 17:00:38 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-09-16 17:00:38 +0100
commitf4c3b9deb9f931cd2284bb0a368e3147f1f74669 (patch)
treec42820be82c56e960b71acdb85ece0288b4eb15b /bin/clean
parent9bf09de19f4a541063610b63f439702c6c96f362 (diff)
Add Makefile for installation
Diffstat (limited to 'bin/clean')
-rw-r--r--bin/clean9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/clean b/bin/clean
new file mode 100644
index 0000000..eb69236
--- /dev/null
+++ b/bin/clean
@@ -0,0 +1,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