install.sh 213 B

12345678910111213
  1. #!/bin/sh
  2. rpath="$(dirname `readlink -f $0`)"
  3. dot="$rpath/file"
  4. cmd="$@"
  5. for i in $dot/* ; do
  6. from="$i"
  7. to="$HOME/.`basename $i`"
  8. rm -rf "$ln"
  9. echo "'$from'" "'$i'"
  10. rm -f "$to"
  11. ln -s -f "$from" "$to"
  12. done