diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/clean | 9 | ||||
-rw-r--r-- | bin/install | 9 |
2 files changed, 18 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 diff --git a/bin/install b/bin/install new file mode 100644 index 0000000..75eb89e --- /dev/null +++ b/bin/install @@ -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 clean && cd $dotdir + else + rm -f $HOME/$file + fi +done |