Commit 1e7751e7ca7074f121738cf5bca6ff6e5e755393

Authored by Jean-François Rey
1 parent 4a412bdf35
Exists in master

:D :D

Showing 1 changed file with 2 additions and 2 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 142
143 echo -e "\n\t${txtblu}Speeral configuration${txtrst}\n" 143 echo -e "\n\t${txtblu}Speeral configuration${txtrst}\n"
144 echo -e "Download Speeral bin and data :" 144 echo -e "Download Speeral bin and data :"
145 scp -r rey@nyx:~/OTMEDIA_DATA/Speeral $OTMEDIA_HOME/tools/ 145 scp -r rey@nyx:~/OTMEDIA_DATA/Speeral $OTMEDIA_HOME/tools/
146 echo -e "\n\t${txtblu}Generating Speeral configuration files :${txtrst}\n" 146 echo -e "\n\t${txtblu}Generating Speeral configuration files :${txtrst}\n"
147 cat $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \ 147 cat $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \
148 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \ 148 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \
149 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \ 149 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \
150 > $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml 150 > $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml
151 echo $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml 151 echo $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml
152 cat $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \ 152 cat $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \
153 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \ 153 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \
154 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \ 154 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \
155 > $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml 155 > $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml
156 echo $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml 156 echo $PWD/tools/Speeral/CFG/SpeeralSecondPass.xml
157 cat $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \ 157 cat $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \
158 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \ 158 | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \
159 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \ 159 | sed -e "s|<binode>[^<]*</binode>|<binode>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer.bin</binode>|g" \
160 > $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml 160 > $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml
161 echo $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml 161 echo $PWD/tools/Speeral/CFG/SpeeralThirdPass.xml
162 162
163 163
164 if [ $EXPLOITCONFPASS -eq 1 ] 164 if [ $EXPLOITCONFPASS -eq 1 ]
165 then 165 then
166 ### LIA ltbox ### 166 ### LIA ltbox ###
167 echo -e "\t${txtblu}Install lia_ltbox${txtrst}\n" 167 echo -e "\t${txtblu}Install lia_ltbox${txtrst}\n"
168 export LIA_TAGG_LANG="french" 168 export LIA_TAGG_LANG="french"
169 export LIA_TAGG="$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/" 169 export LIA_TAGG="$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/"
170 export LIA_PHON_REP="$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/" 170 export LIA_PHON_REP="$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/"
171 export LIA_BIGLEX="$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/" 171 export LIA_BIGLEX="$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/"
172 172
173 ### config lia_phon 173 ### config lia_phon
174 cd $LIA_PHON_REP 174 cd $LIA_PHON_REP
175 make all > /dev/null 175 make all > /dev/null
176 make ressource > /dev/null 176 make ressource > /dev/null
177 ### config lia_tagg 177 ### config lia_tagg
178 cd $LIA_TAGG 178 cd $LIA_TAGG
179 make all > /dev/null 179 make all > /dev/null
180 make ressource.french > /dev/null 180 make ressource.french > /dev/null
181 ### config lia_biglex 181 ### config lia_biglex
182 cd $LIA_BIGLEX 182 cd $LIA_BIGLEX
183 make -f makefile.biglex > /dev/null 183 make -f makefile.biglex > /dev/null
184 cd $OTMEDIA_HOME 184 cd $OTMEDIA_HOME
185 185
186 186
187 ### SOLR DB ### 187 ### SOLR DB ###
188 # Tomcat fisrtly 188 # Tomcat fisrtly
189 test=$(dpkg -l | grep "^ii" | grep tomcat) 189 test=$(dpkg -l | grep "^ii" | grep tomcat)
190 if [ "$test" == "" ] 190 if [ "$test" == "" ]
191 then 191 then
192 echo -e "${txtpur}ERROR${txtrst} TOMCAT seems to not be installed)\n You have to install TOMCAT\n" 192 echo -e "${txtpur}ERROR${txtrst} TOMCAT seems to not be installed)\n You have to install TOMCAT\n"
193 exit 1; 193 exit 1;
194 fi 194 fi
195 echo -e "\nTOMCAT : \t ${txtgrn}OK${txtrst}\n" 195 echo -e "\nTOMCAT : \t ${txtgrn}OK${txtrst}\n"
196 # SOLR secondly 196 # SOLR secondly
197 echo -e "\t${txtblu}Install SOLR DB${txtrst}\n" 197 echo -e "\t${txtblu}Install SOLR DB${txtrst}\n"
198 read -e "You will need 300 Go of free space to install SOLR DB" 198 echo -e "You will need 300 Go of free space to install SOLR DB"
199 read -p "Continue ? (y/n) " solr 199 read -p "Continue ? (y/n) " solr
200 if [ "$solr" == "y" ] 200 if [ "$solr" == "y" ]
201 then 201 then
202 202
203 echo -e "Download SOLR DB\r" 203 echo -e "Download SOLR DB\r"
204 mkdir -p $OTMEDIA_HOME/tools/SOLR 2> /dev/null 204 mkdir -p $OTMEDIA_HOME/tools/SOLR 2> /dev/null
205 scp -r rey@nyx:~/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR 205 scp -r rey@nyx:~/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR
206 echo -e "Unzip SOLR DB\r" 206 echo -e "Unzip SOLR DB\r"
207 res=0 207 res=0
208 #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/") 208 #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/")
209 if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}"; 209 if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}";
210 else echo " ${txtgrn}OK${txtrst}"; fi 210 else echo " ${txtgrn}OK${txtrst}"; fi
211 else 211 else
212 echo "Skipping SOLR install" 212 echo "Skipping SOLR install"
213 fi 213 fi
214 read -e -p "Configure SOLR DB server ? (y/n) " solr 214 read -e -p "Configure SOLR DB server ? (y/n) " solr
215 if [ "$solr" == "y" ] 215 if [ "$solr" == "y" ]
216 then 216 then
217 read -p "Enter SOLR server IP :" ip 217 read -p "Enter SOLR server IP :" ip
218 if [ "${ip}" == "" ];then ip="127.0.0.1";fi 218 if [ "${ip}" == "" ];then ip="localhost";fi
219 echo "machine = \"${ip}\"" > $OTMEDIA_HOME/tools/scripts/solrinfo.py 219 echo "machine = \"${ip}\"" > $OTMEDIA_HOME/tools/scripts/solrinfo.py
220 read -p "Enter SOLR server port :" port 220 read -p "Enter SOLR server port :" port
221 if [ "${port}" == "" ]; then port="8080";fi 221 if [ "${port}" == "" ]; then port="8080";fi
222 echo -e "\n\tSOLR server IP ${ip}" 222 echo -e "\n\tSOLR server IP ${ip}"
223 echo -e "\tSOLR server port ${port}" 223 echo -e "\tSOLR server port ${port}"
224 echo "port = \"${port}\"" >> $OTMEDIA_HOME/tools/scripts/solrinfo.py 224 echo "port = \"${port}\"" >> $OTMEDIA_HOME/tools/scripts/solrinfo.py
225 else 225 else
226 echo "Skipping SOLR DB Configuration" 226 echo "Skipping SOLR DB Configuration"
227 fi 227 fi
228 echo -e "\nSee SOLR.INSTALL file for more information\n" 228 echo -e "\nSee SOLR.INSTALL file for more information\n"
229 fi 229 fi
230 230
231 ### Set Variables in bashrc ### 231 ### Set Variables in bashrc ###
232 cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" > ~/.bashrc.org 232 cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" > ~/.bashrc.org
233 #cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" | grep -v "LIA_TAGG" | grep -v "LIA_PHON" | grep -v "LIA_BIGLEX" > ~/.bashrc.org 233 #cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" | grep -v "LIA_TAGG" | grep -v "LIA_PHON" | grep -v "LIA_BIGLEX" > ~/.bashrc.org
234 cp ~/.bashrc.org ~/.bashrc 234 cp ~/.bashrc.org ~/.bashrc
235 export OTMEDIA_HOME=$PWD 235 export OTMEDIA_HOME=$PWD
236 echo "export OTMEDIA_HOME=$PWD" >> ~/.bashrc 236 echo "export OTMEDIA_HOME=$PWD" >> ~/.bashrc
237 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE" >> ~/.bashrc 237 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE" >> ~/.bashrc
238 #echo "export LIA_TAGG_LANG=french" >> ~/.bashrc 238 #echo "export LIA_TAGG_LANG=french" >> ~/.bashrc
239 #echo "export LIA_TAGG=$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/" >> ~/.bashrc 239 #echo "export LIA_TAGG=$OTMEDIA_HOME/tools/lia_ltbox/lia_tagg/" >> ~/.bashrc
240 #echo "export LIA_PHON_REP=$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/" >> ~/.bashrc 240 #echo "export LIA_PHON_REP=$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/" >> ~/.bashrc
241 #echo "export LIA_BIGLEX=$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/" >> ~/.bashrc 241 #echo "export LIA_BIGLEX=$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/" >> ~/.bashrc
242 242
243 # set global configuration file 243 # set global configuration file
244 echo "OTMEDIA_HOME=$PWD" > $OTMEDIA_HOME/cfg/main_cfg.cfg 244 echo "OTMEDIA_HOME=$PWD" > $OTMEDIA_HOME/cfg/main_cfg.cfg
245 echo "ARCH=$ARCH" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 245 echo "ARCH=$ARCH" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
246 echo "VERBOSE=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 246 echo "VERBOSE=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
247 echo "DEBUG=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 247 echo "DEBUG=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
248 echo "CHECK=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 248 echo "CHECK=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
249 echo "RERUN=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg 249 echo "RERUN=0" >> $OTMEDIA_HOME/cfg/main_cfg.cfg
250 250
251 echo -e "\n\t${txtgrn}### Install completed ###${txtrst}\n" 251 echo -e "\n\t${txtgrn}### Install completed ###${txtrst}\n"
252 echo -e "do : source ~/.bashrc" 252 echo -e "do : source ~/.bashrc"
253 echo -e "or set variable :\n" 253 echo -e "or set variable :\n"
254 echo "export OTMEDIA_HOME=$PWD" 254 echo "export OTMEDIA_HOME=$PWD"
255 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE" 255 echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE"
256 256
257 257