simpler exclusion

This commit is contained in:
Loic Nageleisen 2011-05-29 18:29:21 +02:00
parent 2b4918ffed
commit be802ddca0

View file

@ -1,9 +1,15 @@
#!/bin/sh
for dotfile in *; do
if [ "${dotfile}" != "scripts" ]; then
case "${dotfile}" in
scripts|Makefile)
# NOOP
;;
*)
# link the file with a leading dot
echo "linking ${dotfile}"
ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}"
fi
;;
esac
done