PageRenderTime 342ms CodeModel.GetById 181ms app.highlight 1ms RepoModel.GetById 160ms app.codeStats 0ms

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