install changed

This commit is contained in:
ryuslash 2010-10-05 11:37:43 +02:00
parent e7c78a78d9
commit 5f71b5a2c6

View file

@ -2,18 +2,18 @@ INSTALL_BASEFILE=`readlink -f $0`
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE` INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
# EMACS # EMACS
echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs" #echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs"
ln -sf $INSTALL_BASEDIR/.emacs $HOME/.emacs #ln -sf $INSTALL_BASEDIR/.emacs $HOME/.emacs
if [ -d $HOME/.emacs.d ]; then #if [ -d $HOME/.emacs.d ]; then
if [ -d $HOME/.emacs.d_backup ]; then # if [ -d $HOME/.emacs.d_backup ]; then
echo "Removing old $HOME/.emacs.d_backup" # echo "Removing old $HOME/.emacs.d_backup"
rm -rf $HOME/.emacs.d_backup # rm -rf $HOME/.emacs.d_backup
fi # fi
echo "Moving old $HOME/.emacs.d" # echo "Moving old $HOME/.emacs.d"
mv $HOME/.emacs.d $HOME/.emacs.d_backup # mv $HOME/.emacs.d $HOME/.emacs.d_backup
fi #fi
echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs" #echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs"
ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/.emacs.d #ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/.emacs.d
# XDEFAULTS # XDEFAULTS
echo "Linking $INSTALL_BASEDIR/.Xdefaults to $HOME/.Xdefaults" echo "Linking $INSTALL_BASEDIR/.Xdefaults to $HOME/.Xdefaults"
@ -27,6 +27,7 @@ ln -sf $INSTALL_BASEDIR/.Xmodmap $HOME/.Xmodmap
echo "Linking $INSTALL_BASEDIR/.conkerorrc to $HOME/.conkerorrc" echo "Linking $INSTALL_BASEDIR/.conkerorrc to $HOME/.conkerorrc"
ln -sf $INSTALL_BASEDIR/.conkerorrc $HOME/.conkerorrc ln -sf $INSTALL_BASEDIR/.conkerorrc $HOME/.conkerorrc
# awesome
echo "Linking #INSTALL_BASEDIR/awesome to $HOME/.config/awesome" echo "Linking #INSTALL_BASEDIR/awesome to $HOME/.config/awesome"
if [ -d $HOME/.config/awesome ]; then if [ -d $HOME/.config/awesome ]; then
if [ -d $HOME/.config/awesome_backup ]; then if [ -d $HOME/.config/awesome_backup ]; then
@ -38,3 +39,11 @@ if [ -d $HOME/.config/awesome ]; then
fi fi
echo "Linking $INSTALL_BASEDIR/awesome to $HOME/.config/awesome" echo "Linking $INSTALL_BASEDIR/awesome to $HOME/.config/awesome"
ln -sf $INSTALL_BASEDIR/awesome $HOME/.config/awesome ln -sf $INSTALL_BASEDIR/awesome $HOME/.config/awesome
for item in `ls`; do
if [ -d $item ]; then
if [ -e $item/install.sh ]; then
. $item/install.sh $INSTALL_BASEDIR
fi
fi
done