diff options
author | Tom Willemsen | 2011-07-28 00:25:27 +0200 |
---|---|---|
committer | Tom Willemsen | 2011-07-28 00:25:27 +0200 |
commit | 0b0e95e88c1dbd6a9f16300ae03f725e37b6369b (patch) | |
tree | c373b1c5a5c49dc72c23ee708fc478d807d00768 /install.sh | |
parent | af0eeb3f5251367970b15ef4e614bca56c59ee43 (diff) | |
download | dotfiles-0b0e95e88c1dbd6a9f16300ae03f725e37b6369b.tar.gz dotfiles-0b0e95e88c1dbd6a9f16300ae03f725e37b6369b.zip |
Preparing placing home-directory in repo
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/install.sh b/install.sh deleted file mode 100755 index 38f758d..0000000 --- a/install.sh +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/bash -INSTALL_BASEFILE=`readlink -f $0` -if [ -z $INSTALL_BASEFILE ]; then - INSTALL_BASEFILE="$PWD/$0" -fi -INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE` - -CMD="ln -sfn" - -function linkmy -{ - install_file=$INSTALL_BASEDIR/$1 - home_file=$HOME/$2 - - if [ -f $install_file ] - then - if [ ! -f $home_file ] - then - echo "Linking $install_file to $home_file" - $CMD $install_file $home_file - else - echo "$home_file already exists." - fi - elif [ -d $install_file ] - then - if [ ! -d $home_file ] - then - echo "Linking $install_file/ to $home_file/" - $CMD $install_file $home_file - else - echo "$home_file already exists." - fi - else - echo "Couldn't find $install_file" - fi -} - -function copymy -{ - echo "Copying $INSTALL_BASEDIR/$1 to $HOME/$2" - cp $INSTALL_BASEDIR/$1 $HOME/$2 -} - -# CONKEROR -linkmy conkerorrc .conkerorrc -linkmy conkeror .conkeror -# CONKY -linkmy conkyrc .conkyrc -copymy conky_box.lua .conky_box.lua -# EMACS -emacs --batch -l emacs.d/init.el --eval "(byte-compile-file \"emacs.d/init.el\")" || return 1 -linkmy emacs.d .emacs.d -# FONTS -linkmy fonts.conf .fonts.conf -# GIT -linkmy gitconfig .gitconfig -linkmy git.d .git.d -# IRSSI -linkmy irssi .irssi -# MUTT -linkmy muttrc .muttrc -linkmy mutt .mutt -# NCMPCPP -linkmy ncmpcpp .ncmpcpp -# NEWSBEUTER -linkmy newsbeuter .newsbeuter -# OFFLINEIMAP -linkmy offlineimaprc .offlineimaprc -linkmy offlineimap.py .offlineimap.py -# STUMPWM -linkmy stumpwmrc .stumpwmrc -# VIM -linkmy vimrc .vimrc -linkmy vim .vim -# XDEFAULTS -linkmy Xdefaults .Xdefaults -# XINITRC -linkmy xinitrc .xinitrc -linkmy getrootname.sh .getrootname -# XMODMAP -linkmy Xmodmap .Xmodmap -# ZSH -linkmy zshrc .zshrc -linkmy zsh .zsh -linkmy zshenv .zshenv |