-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathInstaller.sh
executable file
·55 lines (46 loc) · 1.13 KB
/
Installer.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# Varie
BASEDIR=`pwd`
apt-get install libxext-dev
##prepare folder
OUTPUTFOLDER=$(zenity --file-selection --directory)
if [ -n "$OUTPUTFOLDER" ]; then
rm -rf $OUTPUTFOLDER/DeSpeect_SWE
mkdir $OUTPUTFOLDER/DeSpeect_SWE
cd $OUTPUTFOLDER/DeSpeect_SWE
OUTPUTFOLDER=`pwd`
cd $BASEDIR
rm -rf $OUTPUTFOLDER/SpeectInstaller
rm -rf $OUTPUTFOLDER/DeSpeect
cp -r $BASEDIR/SpeectInstaller $OUTPUTFOLDER/
cp -r $BASEDIR/DeSpeect $OUTPUTFOLDER/
rm -rf $OUTPUTFOLDER/SpeectInstaller/build
rm -rf $OUTPUTFOLDER/SpeectInstaller/install
cd $OUTPUTFOLDER
#build Speect
cd SpeectInstaller
if [ -d ./source/speect ]; then
./install.sh download
fi
./install.sh no-download
rm -rf ./downloads
rm -rf ./sources
cd ..
# Build QT
cd DeSpeect
rm -rf ../DespeectInstall
mkdir ../DespeectInstall
mkdir ../DespeectInstall/Test
cp -r ../SpeectInstaller/voices/cmu_arctic_slt ../DespeectInstall/Test
rm -rf ../SpeectInstaller/voices
cd ../DespeectInstall
cp -r $OUTPUTFOLDER/DeSpeect/Manuals ../
cmake ../DeSpeect/ -DTest=FALSE || exit 1
make || exit 2
cd ..
rm -r DeSpeect
rm -rf ./Despeect
ln -s $OUTPUTFOLDER/DespeectInstall/main ./DeSpeect
else
echo failed
fi