/setup-bootstrap
http://github.com/motemen/Teto · Shell · 21 lines · 16 code · 4 blank · 1 comment · 2 complexity · c6aa8268aaec63c41b5cb0d6bb0a5830 MD5 · raw file
- #!/bin/sh
- TETO_DIR=$(dirname $0)
- /bin/echo -n 'which cpanm ... '
- if which cpanm; then
- CPANM=cpanm
- else
- echo 'cpanm not found'
- CPANM='curl -L http://htn.to/cpanm | perl -- -'
- fi
- /bin/echo -n 'which ffmpeg ... '
- if which ffmpeg; then
- :
- else
- echo 'ffmpeg not found; install ffmpeg and retry.'
- exit 1
- fi
- eval "$CPANM -l $TETO_DIR/extlib --installdeps $TETO_DIR"