-
Notifications
You must be signed in to change notification settings - Fork 2
/
run
executable file
·46 lines (33 loc) · 1.02 KB
/
run
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
# Get this scrip directory
CURDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Set basic environmental variables
export PYTHONPATH="$PYTHONPATH:$CURDIR:$CURDIR/modules"
COMMAND="$1"
if [ "$COMMAND" = "" ]
then
python ./slate.py
elif [ "$COMMAND" = "test" ]
then
python ./tests/simple_test.py
elif [ "$COMMAND" = "setup" ]
then
# Mac installation only!
# static FFmpeg binaries for Mac OS X Intel 64bit
FFMPEG_LINK="http://evermeet.cx/ffmpeg/ffmpeg-81960-g1bda0ee.dmg"
if [ ! -f bin/ffmpeg ]; then
mkdir bin
curl -sS $FFMPEG_LINK > bin/ffmpeg.dmg
hdiutil attach bin/ffmpeg.dmg
cp "/Volumes/FFmpeg 81960-g1bda0ee/ffmpeg" bin/ffmpeg
hdiutil detach /dev/disk2
rm bin/ffmpeg.dmg
else
echo 'FFMPEG alredy installed!'
fi
mkdir modules
git clone https://github.com/Kif11/kk-yaml modules/yaml
git clone https://github.com/evileyepictures/eep-fileseq modules/fileseq
else
echo "run script does not know this command"
fi