forked from strob/drift3
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·32 lines (26 loc) · 1023 Bytes
/
install.sh
File metadata and controls
executable file
·32 lines (26 loc) · 1023 Bytes
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
#!/bin/bash
# uncomment to fix older version of Gentle (specifically commit f29245a)
# # fix some stuff in submodules
# (cd ext/gentle && git apply ../../patches/gentle.patch)
# (cd ext/gentle/ext/kaldi && git apply ../../../../patches/kaldi.patch)
# install dependencies
if [[ "$OSTYPE" == "linux-gnu" ]]; then
sudo apt update
sudo apt install ffmpeg libsndfile1 libsndfile-dev sox
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install ffmpeg libsndfile # openfst
fi
# install Python 2 packages. use xargs to ensure order preservation
cat py2requirements.txt | xargs -n 1 python -m pip install
# install Python 3 packages. use xargs to ensure order preservation
cat py3requirements.txt | xargs -n 1 python3 -m pip install
# install Node packages
npm i
(cd ext/gentle && ./install.sh)
# check for broken symlinks
if ! [[ $(readlink guts) ]]; then
echo "Broken symlinks detected! Fixing..."
./fix_symlinks.sh
echo "Symlinks fixed!"
fi
echo "Successfully finished installation of Drift! Enjoy :)"