/setup-bootstrap

http://github.com/motemen/Teto · Shell · 21 lines · 16 code · 4 blank · 1 comment · 2 complexity · c6aa8268aaec63c41b5cb0d6bb0a5830 MD5 · raw file

  1. #!/bin/sh
  2. TETO_DIR=$(dirname $0)
  3. /bin/echo -n 'which cpanm ... '
  4. if which cpanm; then
  5. CPANM=cpanm
  6. else
  7. echo 'cpanm not found'
  8. CPANM='curl -L http://htn.to/cpanm | perl -- -'
  9. fi
  10. /bin/echo -n 'which ffmpeg ... '
  11. if which ffmpeg; then
  12. :
  13. else
  14. echo 'ffmpeg not found; install ffmpeg and retry.'
  15. exit 1
  16. fi
  17. eval "$CPANM -l $TETO_DIR/extlib --installdeps $TETO_DIR"