-
Notifications
You must be signed in to change notification settings - Fork 1
/
depends.sh
29 lines (24 loc) · 880 Bytes
/
depends.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [[ $# > 0 ]]
then
GITSRV=$1
else
GITSRV=github.com/nejatafshar
fi
if [[ "$OSTYPE" == "linux-gnu"* ]]; then # Linux
BRANCH=linux_v6
elif [[ "$OSTYPE" == "darwin"* ]]; then # Mac OSX
BRANCH=mac_v6
elif [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then # Windows
BRANCH=win_v6
fi
P=$DIR/3rdparty/ffmpeg && git -C $P pull || git clone --recursive -j8 -b $BRANCH --single-branch https://$GITSRV/FFmpegBin.git $P
if [[ "$OSTYPE" == "linux-gnu"* ]]; then # Linux
BRANCH=linux
elif [[ "$OSTYPE" == "darwin"* ]]; then # Mac OSX
BRANCH=mac
elif [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then # Windows
BRANCH=win
fi
P=$DIR/3rdparty/openssl && git -C $P pull || git clone --recursive -j8 -b $BRANCH --single-branch https://$GITSRV/openssl_builds.git $P