From 6589b5c869f2117dc548dace3494ed2b791d7b1f Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 28 Nov 2015 18:12:40 +0100 Subject: [PATCH] New install script. --- add.sh | 3 +++ all.sh | 26 -------------------------- 2 files changed, 3 insertions(+), 26 deletions(-) create mode 100755 add.sh delete mode 100644 all.sh diff --git a/add.sh b/add.sh new file mode 100755 index 0000000..3dc9e7e --- /dev/null +++ b/add.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +rsync -bahv ./ ~/ diff --git a/all.sh b/all.sh deleted file mode 100644 index 266552b..0000000 --- a/all.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# wget -qO- dotfiles.mandark.fr/all | sh - -backup_directory="$(date +%Y-%m-%d-%H:%M:%S)" - -mkdir -p ~/$backup_directory - -for file in emacs bashrc Xresources gitconfig screenrc rc.xml -do - case $file in - rc.xml) - if [ -d ~/.config/openbox/ ] - then - [ -f ~/.config/openbox/rc.xml ] && mv ~/.config/openbox/rc.xml ~/$backup_directory/ - wget -qO ~/.config/openbox/rc.xml mandark.fr/dotfiles/$file - fi - ;; - *) - [ -f ~/.$file ] && mv ~/.$file ~/$backup_directory/ - wget -qO ~/.$file mandark.fr/dotfiles/$file - ;; - esac -done - -echo "Your old files are in ~/$backup_directory"