2012-02-16 21:14:35 -05:00
|
|
|
#!/bin/bash
|
2012-02-15 10:23:26 -05:00
|
|
|
|
|
|
|
DOTFILES=`cd $(dirname $0); pwd`
|
|
|
|
|
|
|
|
for FILE in $DOTFILES/*; do
|
|
|
|
NAME=`basename $FILE`
|
|
|
|
if [ $NAME == 'bin' ]; then
|
|
|
|
TARGET=$HOME/bin
|
|
|
|
else
|
|
|
|
TARGET=$HOME/.$NAME
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $NAME != 'install.sh' ]; then
|
|
|
|
if [ -L $TARGET ]; then
|
|
|
|
echo "$TARGET exists"
|
|
|
|
else
|
|
|
|
ln -vsf $FILE $TARGET
|
|
|
|
fi
|
|
|
|
fi
|
2012-02-16 21:14:35 -05:00
|
|
|
done
|