makelinks.sh 343 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. theme_base_name="oncremmer"
  3. usage() {
  4. echo "usage:
  5. $(basename $0) \"dir\"
  6. where dir is the directory you want to install to
  7. (defaults to \"\$HOME/.themes\" if omitted).
  8. "
  9. exit 1
  10. }
  11. if [[ "x$1" != "x" ]]
  12. then
  13. [ -d "$1" ] || usage
  14. dir="$1"
  15. else
  16. dir="$HOME/.themes"
  17. fi
  18. names="$PWD/$theme_base_name*"
  19. ln -s $names "$dir/"