Commit b50ebdf386f824a5c217d5af6e05ca8fc527076d

Authored by Jean-François Rey
1 parent 0d120eb89a
Exists in master

update install.sh

Showing 1 changed file with 23 additions and 15 deletions Inline Diff

1 #!/bin/bash 1 #!/bin/bash
2 2
3 #-------------------# 3 #-------------------#
4 # Install script # 4 # Install script #
5 # OTMEDIA # 5 # OTMEDIA #
6 #-------------------# 6 #-------------------#
7 7
8 # Color variables 8 # Color variables
9 txtgrn=$(tput setaf 2) # Green 9 txtgrn=$(tput setaf 2) # Green
10 txtylw=$(tput setaf 3) # Yellow 10 txtylw=$(tput setaf 3) # Yellow
11 txtblu=$(tput setaf 4) # Blue 11 txtblu=$(tput setaf 4) # Blue
12 txtpur=$(tput setaf 5) # Purple 12 txtpur=$(tput setaf 5) # Purple
13 txtcyn=$(tput setaf 6) # Cyan 13 txtcyn=$(tput setaf 6) # Cyan
14 txtwht=$(tput setaf 7) # White 14 txtwht=$(tput setaf 7) # White
15 txtrst=$(tput sgr0) # Text reset. 15 txtrst=$(tput sgr0) # Text reset.
16 #/color 16 #/color
17 17
18 # 18 #
19 ### Global Variables 19 ### Global Variables
20 # 20 #
21 PWD=$(pwd) 21 PWD=$(pwd)
22 OTMEDIA_HOME=$PWD 22 OTMEDIA_HOME=$PWD
23 test=$(arch) 23 test=$(arch)
24 if [ "$test" == "x86_64" ]; then ARCH=".64"; else ARCH=""; fi 24 if [ "$test" == "x86_64" ]; then ARCH=".64"; else ARCH=""; fi
25 #/Global 25 #/Global
26 26
27 27
28 # 28 #
29 # Put to 0 to disable dependencies of a pass 29 # Put to 0 to disable dependencies of a pass
30 # and 1 to enable 30 # and 1 to enable
31 # 31 #
32 PASS1=1 # First Pass 32 PASS1=1 # First Pass
33 PASS2=1 # Second Pass 33 PASS2=1 # Second Pass
34 CONFPASS=1 # Confidence Pass 34 CONFPASS=1 # Confidence Pass
35 EXPLOITCONFPASS=1 # SOLR query and trigg 35 EXPLOITCONFPASS=1 # SOLR query and trigg
36 36
37 echo -e "\nWill do install for :" 37 echo -e "\nWill do install for :"
38 if [ $PASS1 -eq 1 ];then echo "- Pass 1";fi 38 if [ $PASS1 -eq 1 ];then echo "- Pass 1";fi
39 if [ $PASS2 -eq 1 ];then echo "- Pass 2";fi 39 if [ $PASS2 -eq 1 ];then echo "- Pass 2";fi
40 if [ $CONFPASS -eq 1 ];then echo "- Confidence Pass";fi 40 if [ $CONFPASS -eq 1 ];then echo "- Confidence Pass";fi
41 if [ $EXPLOITCONFPASS -eq 1 ];then echo "- Exploit Confidence Pass";fi 41 if [ $EXPLOITCONFPASS -eq 1 ];then echo "- Exploit Confidence Pass";fi
42 42
43 # 43 #
44 ### CHECK Dependencies ### 44 ### CHECK Dependencies ###
45 # 45 #
46 echo -e "\n\t${txtblu}Check Dependencies${txtrst}\n" 46 echo -e "\n\t${txtblu}Check Dependencies${txtrst}\n"
47 47
48 ## make 48 ## make
49 test=$(whereis make) 49 test=$(whereis make)
50 if [ "$test" == "make:" ] 50 if [ "$test" == "make:" ]
51 then 51 then
52 echo -e "${txtpur}ERROR${txtrst} make not found\n You have to install make\n sudo apt-get install make" 52 echo -e "${txtpur}ERROR${txtrst} make not found\n You have to install make\n sudo apt-get install make"
53 exit 1; 53 exit 1;
54 fi 54 fi
55 echo -e "make \t ${txtgrn}OK${txtrst}" 55 echo -e "make \t ${txtgrn}OK${txtrst}"
56 56
57 ## CC 57 ## CC
58 test=$(whereis cc) 58 test=$(whereis cc)
59 if [ "$test" == "cc:" ] 59 if [ "$test" == "cc:" ]
60 then 60 then
61 echo -e "${txtpur}ERROR${txtrst} cc not found\n You have to install cc\n sudo apt-get install gcc" 61 echo -e "${txtpur}ERROR${txtrst} cc not found\n You have to install cc\n sudo apt-get install gcc"
62 exit 1; 62 exit 1;
63 fi 63 fi
64 echo -e "cc \t ${txtgrn}OK${txtrst}" 64 echo -e "cc \t ${txtgrn}OK${txtrst}"
65 65
66 ## AVCONV 66 ## AVCONV
67 test=$(whereis avconv) 67 test=$(whereis avconv)
68 if [ "$test" == "avconv:" ] 68 if [ "$test" == "avconv:" ]
69 then 69 then
70 echo -e "${txtpur}ERROR${txtrst} avconv not found\n You have to install avconv\n sudo apt-get install libav-tools" 70 echo -e "${txtpur}ERROR${txtrst} avconv not found\n You have to install avconv\n sudo apt-get install libav-tools"
71 exit 1; 71 exit 1;
72 fi 72 fi
73 echo -e "libav-tools : avconv \t ${txtgrn}OK${txtrst}" 73 echo -e "libav-tools : avconv \t ${txtgrn}OK${txtrst}"
74 74
75 ## JAVA 75 ## JAVA
76 test=$(whereis java) 76 test=$(whereis java)
77 if [ "$test" == "java:" ] 77 if [ "$test" == "java:" ]
78 then 78 then
79 echo -e "${txtpur}ERROR${txtrst} java not found\n You have to install java JRE\n sudo apt-get install openjdk-7-jre" 79 echo -e "${txtpur}ERROR${txtrst} java not found\n You have to install java JRE\n sudo apt-get install openjdk-7-jre"
80 exit 1; 80 exit 1;
81 fi 81 fi
82 echo -e "Java : JRE \t ${txtgrn}OK${txtrst}" 82 echo -e "Java : JRE \t ${txtgrn}OK${txtrst}"
83 test=$(whereis javac) 83 test=$(whereis javac)
84 if [ "$test" == "javac:" ] 84 if [ "$test" == "javac:" ]
85 then 85 then
86 echo -e "${txtpur}ERROR${txtrst} javac not found\n You have to install java JDK\n sudo apt-get install openjdk-7-jdk" 86 echo -e "${txtpur}ERROR${txtrst} javac not found\n You have to install java JDK\n sudo apt-get install openjdk-7-jdk"
87 exit 1; 87 exit 1;
88 fi 88 fi
89 echo -e "Java : JDK \t ${txtgrn}OK${txtrst}" 89 echo -e "Java : JDK \t ${txtgrn}OK${txtrst}"
90 90
91 if [ $EXPLOITCONFPASS -eq 1 ] 91 if [ $EXPLOITCONFPASS -eq 1 ]
92 then 92 then
93 ## Python 93 ## Python
94 test=$(whereis python) 94 test=$(whereis python)
95 if [ "$test" == "python:" ] 95 if [ "$test" == "python:" ]
96 then 96 then
97 echo -e "${txtpur}ERROR${txtrst} python not found\n You have to install python\n sudo apt-get install python" 97 echo -e "${txtpur}ERROR${txtrst} python not found\n You have to install python\n sudo apt-get install python"
98 exit 1; 98 exit 1;
99 fi 99 fi
100 echo -e "python : \t ${txtgrn}OK${txtrst}" 100 echo -e "python : \t ${txtgrn}OK${txtrst}"
101 fi 101 fi
102 102
103 ## Perl 103 ## Perl
104 test=$(whereis perl) 104 test=$(whereis perl)
105 if [ "$test" == "perl:" ] 105 if [ "$test" == "perl:" ]
106 then 106 then
107 echo -e "${txtpur}ERROR${txtrst} perl not found\n You have to install perl\n sudo apt-get install perl" 107 echo -e "${txtpur}ERROR${txtrst} perl not found\n You have to install perl\n sudo apt-get install perl"
108 exit 1; 108 exit 1;
109 fi 109 fi
110 echo -e "perl : \t ${txtgrn}OK${txtrst}" 110 echo -e "perl : \t ${txtgrn}OK${txtrst}"
111 111
112 ## iconv 112 ## iconv
113 test=$(whereis iconv) 113 test=$(whereis iconv)
114 if [ "$test" == "iconv:" ] 114 if [ "$test" == "iconv:" ]
115 then 115 then
116 echo -e "${txtpur}ERROR${txtrst} iconv not found\n You have to install iconv\n sudo apt-cache search iconv" 116 echo -e "${txtpur}ERROR${txtrst} iconv not found\n You have to install iconv\n sudo apt-cache search iconv"
117 exit 1; 117 exit 1;
118 fi 118 fi
119 echo -e "iconv : \t ${txtgrn}OK${txtrst}" 119 echo -e "iconv : \t ${txtgrn}OK${txtrst}"
120 120
121 ## csh shell 121 ## csh shell
122 test=$(whereis csh) 122 test=$(whereis csh)
123 if [ "$test" == "csh:" ] 123 if [ "$test" == "csh:" ]
124 then 124 then
125 echo -e "${txtpur}ERROR${txtrst} csh shell not found\n You have to install csh shell\n sudo apt-get install csh" 125 echo -e "${txtpur}ERROR${txtrst} csh shell not found\n You have to install csh shell\n sudo apt-get install csh"
126 exit 1; 126 exit 1;
127 fi 127 fi
128 echo -e "csh shell : \t ${txtgrn}OK${txtrst}" 128 echo -e "csh shell : \t ${txtgrn}OK${txtrst}"
129 129
130 ## SRI LM 130 ## SRI LM
131 if [ -z "$SRILM" ] && [ -z "$MACHINE_TYPE" ] 131 if [ -z "$SRILM" ] && [ -z "$MACHINE_TYPE" ]
132 then 132 then
133 echo -e "${txtpur}ERROR${txtrst} SRILM toolkit variables are not defined (SRILM and MACHINE_TYPE)\n You have to install SRILM Toolkit\n" 133 echo -e "${txtpur}ERROR${txtrst} SRILM toolkit variables are not defined (SRILM and MACHINE_TYPE)\n You have to install SRILM Toolkit\n"
134 exit 1; 134 exit 1;
135 fi 135 fi
136 export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE 136 export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE
137 echo -e "SRILM toolkit : \t ${txtgrn}OK${txtrst}" 137 echo -e "SRILM toolkit : \t ${txtgrn}OK${txtrst}"
138 138
139 139
140 140
141 ### Speeral Configuration ### 141 ### Speeral Configuration ###
142 echo -e "Download Speeral bin and data :"
142 scp -r rey@nyx:~/OTMEDIA_DATA/Speeral $OTMEDIA_HOME/tools/ 143 scp -r rey@nyx:~/OTMEDIA_DATA/Speeral $OTMEDIA_HOME/tools/
143 echo -e "\t${txtblu}Generating Speeral configuration files :${txtrst}\n" 144 echo -e "\t${txtblu}Generating Speeral configuration files :${txtrst}\n"
144 cat $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \ 145 cat $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \
145 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \ 146 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \
146 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \ 147 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \
147 > $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml 148 > $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml
148 echo $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml 149 echo $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml
149 cat $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \ 150 cat $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \
150 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \ 151 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \
151 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \ 152 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \
152 > $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml 153 > $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml
153 echo $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml 154 echo $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml
154 cat $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \ 155 cat $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \
155 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \ 156 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \
156 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \ 157 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \
157 > $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml 158 > $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml
158 echo $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml 159 echo $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml
159 160
160 161
161 if [ $EXPLOITCONFPASS -eq 1 ] 162 if [ $EXPLOITCONFPASS -eq 1 ]
162 then 163 then
163 ### LIA ltbox ### 164 ### LIA ltbox ###
164 echo -e "\t${txtblu}Install lia_ltbox${txtrst}\n" 165 echo -e "\t${txtblu}Install lia_ltbox${txtrst}\n"
165 export LIA_TAGG_LANG="french" 166 export LIA_TAGG_LANG="french"
166 export LIA_TAGG="$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/" 167 export LIA_TAGG="$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/"
167 export LIA_PHON_REP="$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/" 168 export LIA_PHON_REP="$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/"
168 export LIA_BIGLEX="$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/" 169 export LIA_BIGLEX="$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/"
169 170
170 ### config lia_phon 171 ### config lia_phon
171 cd $LIA_PHON_REP 172 cd $LIA_PHON_REP
172 make all > /dev/null 173 make all > /dev/null
173 make ressource > /dev/null 174 make ressource > /dev/null
174 ### config lia_tagg 175 ### config lia_tagg
175 cd $LIA_TAGG 176 cd $LIA_TAGG
176 make all > /dev/null 177 make all > /dev/null
177 make ressource.french > /dev/null 178 make ressource.french > /dev/null
178 ### config lia_biglex 179 ### config lia_biglex
179 cd $LIA_BIGLEX 180 cd $LIA_BIGLEX
180 make -f makefile.biglex > /dev/null 181 make -f makefile.biglex > /dev/null
181 cd $OTMEDIA_HOME 182 cd $OTMEDIA_HOME
182 183
183 184
184 ### SOLR DB ### 185 ### SOLR DB ###
185 # Tomcat fisrtly 186 # Tomcat fisrtly
186 test=$(dpkg -l | grep "^ii" | grep tomcat) 187 test=$(dpkg -l | grep "^ii" | grep tomcat)
187 if [ "$test" == "" ] 188 if [ "$test" == "" ]
188 then 189 then
189 echo -e "${txtpur}ERROR${txtrst} TOMCAT seems to not be installed)\n You have to install TOMCAT\n" 190 echo -e "${txtpur}ERROR${txtrst} TOMCAT seems to not be installed)\n You have to install TOMCAT\n"
190 exit 1; 191 exit 1;
191 fi 192 fi
192 echo -e "\nTOMCAT : \t ${txtgrn}OK${txtrst}" 193 echo -e "\nTOMCAT : \t ${txtgrn}OK${txtrst}"
193 # SOLR secondly 194 # SOLR secondly
194 echo -e "\t${txtblu}Install SOLR DB${txtrst}" 195 echo -e "\t${txtblu}Install SOLR DB${txtrst}"
195 echo -e "Download SOLR DB\r" 196 read -p "You will need 300 Go of free space to install SOLR DB\nContinue ? (y/n) " solr
196 mkdir -p $OTMEDIA_HOME/tools/SOLR 2> /dev/null 197 if [ "$solr" == "y" ]
197 scp -r rey@nyx:~/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR 198 then
198 echo -e "Unzip SOLR DB\r" 199
199 #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/") 200 echo -e "Download SOLR DB\r"
200 if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}"; 201 mkdir -p $OTMEDIA_HOME/tools/SOLR 2> /dev/null
201 else echo " ${txtgrn}OK${txtrst}"; fi 202 scp -r rey@nyx:~/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR
202 read -p "Enter SOLR server IP :" ip 203 echo -e "Unzip SOLR DB\r"
203 if [ $ip == "" ];then ip="127.0.0.1";fi 204 #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/")
204 echo 'machine = "194.57.216.43"' > $OTMEDIA_HOME/tools/scripts/solrinfo.py 205 if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}";
205 read -p "Enter SOLR server port :" port 206 else echo " ${txtgrn}OK${txtrst}"; fi
206 if [ $port == "" ]; then port="8080";fi 207 read -p "Enter SOLR server IP :" ip
207 echo "\n\tSOLR server IP $ip" 208 if [ $ip == "" ];then ip="127.0.0.1";fi
208 echo "\tSOLR server port $port" 209 echo 'machine = "194.57.216.43"' > $OTMEDIA_HOME/tools/scripts/solrinfo.py
209 echo 'port = "8080"' >> $OTMEDIA_HOME/tools/scripts/solrinfo.py 210 read -p "Enter SOLR server port :" port
211 if [ $port == "" ]; then port="8080";fi
212 echo "\n\tSOLR server IP $ip"
213 echo "\tSOLR server port $port"
214 echo 'port = "8080"' >> $OTMEDIA_HOME/tools/scripts/solrinfo.py
215 else
216 echo "Skipping SOLR install"
217 fi
210 fi 218 fi
211 219
212 ### Set Variables in bashrc ### 220 ### Set Variables in bashrc ###
213 cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" > ~/.bashrc.org 221 cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" > ~/.bashrc.org
214 #cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" | grep -v "LIA_TAGG" | grep -v "LIA_PHON" | grep -v "LIA_BIGLEX" > ~/.bashrc.org 222 #cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" | grep -v "LIA_TAGG" | grep -v "LIA_PHON" | grep -v "LIA_BIGLEX" > ~/.bashrc.org
215 cp ~/.bashrc.org ~/.bashrc 223 cp ~/.bashrc.org ~/.bashrc
216 export OTMEDIA_HOME=$PWD 224 export OTMEDIA_HOME=$PWD
217 echo "export OTMEDIA_HOME=$PWD" >> ~/.bashrc 225 echo "export OTMEDIA_HOME=$PWD" >> ~/.bashrc
218 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE" >> ~/.bashrc 226 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE" >> ~/.bashrc
219 #echo "export LIA_TAGG_LANG=french" >> ~/.bashrc 227 #echo "export LIA_TAGG_LANG=french" >> ~/.bashrc
220 #echo "export LIA_TAGG=$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/" >> ~/.bashrc 228 #echo "export LIA_TAGG=$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/" >> ~/.bashrc
221 #echo "export LIA_PHON_REP=$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/" >> ~/.bashrc 229 #echo "export LIA_PHON_REP=$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/" >> ~/.bashrc
222 #echo "export LIA_BIGLEX=$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/" >> ~/.bashrc 230 #echo "export LIA_BIGLEX=$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/" >> ~/.bashrc
223 231
224 # set global configuration file 232 # set global configuration file
225 echo "OTMEDIA_HOME=$PWD" > $OTMEDIA_HOME/cfg/main_cfg.cfg 233 echo "OTMEDIA_HOME=$PWD" > $OTMEDIA_HOME/cfg/main_cfg.cfg
226 echo "ARCH=$ARCH" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 234 echo "ARCH=$ARCH" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
227 echo "VERBOSE=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 235 echo "VERBOSE=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
228 echo "DEBUG=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 236 echo "DEBUG=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
229 echo "CHECK=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 237 echo "CHECK=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
230 echo "RERUN=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 238 echo "RERUN=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
231 239
232 echo -e "\n\n\t${txtgrn}### Install completed ###${txtrst}\n" 240 echo -e "\n\n\t${txtgrn}### Install completed ###${txtrst}\n"
233 echo -e "do : source ~/.bashrc" 241 echo -e "do : source ~/.bashrc"
234 echo -e "or set variable :\n" 242 echo -e "or set variable :\n"
235 echo "export OTMEDIA_HOME=$PWD" 243 echo "export OTMEDIA_HOME=$PWD"
236 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE" 244 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE"
237 245
238 246