Commit 70bd4b2df1678b492abe0ab8db9f9e86c182f58d
1 parent
fa23090792
Exists in
master
update
Showing 2 changed files with 12 additions and 1 deletions Side-by-side Diff
install.sh
... | ... | @@ -267,7 +267,7 @@ |
267 | 267 | fi |
268 | 268 | |
269 | 269 | ### Set Variables in bashrc ### |
270 | -cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" | grep -v "main_tools" > ~/.bashrc.org | |
270 | +cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" | grep -v "main_tools" | grep -v "/tools/install/" > ~/.bashrc.org | |
271 | 271 | #cat ~/.bashrc | grep -v "OTMEDIA_HOME" | grep -v "SRILM_BIN" | grep -v "LIA_TAGG" | grep -v "LIA_PHON" | grep -v "LIA_BIGLEX" > ~/.bashrc.org |
272 | 272 | cp ~/.bashrc.org ~/.bashrc |
273 | 273 | export OTMEDIA_HOME=$PWD |
... | ... | @@ -279,6 +279,11 @@ |
279 | 279 | #echo "export LIA_PHON_REP=$OTMEDIA_HOME/tools/lia_ltbox/lia_phon/" >> ~/.bashrc |
280 | 280 | #echo "export LIA_BIGLEX=$OTMEDIA_HOME/tools/lia_ltbox/lia_biglex/" >> ~/.bashrc |
281 | 281 | #echo "export LIA_NE=$OTMEDIA_HOME/tools/lia_ltbox/lia_ne_v2.2" >> ~/.bashrc |
282 | +if [ $SCORING -eq 1 ] | |
283 | +then | |
284 | + echo "export PATH=\$PATH:$OTMEDIA_HOME/tools/install/bin" >> ~/.bashrc | |
285 | + echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$OTMEDIA_HOME/tools/install/lib" >> ~/.bashrc | |
286 | +fi | |
282 | 287 | |
283 | 288 | # set global configuration file |
284 | 289 | echo "OTMEDIA_HOME=\"$PWD\"" > $OTMEDIA_HOME/cfg/main_cfg.cfg |
... | ... | @@ -294,6 +299,12 @@ |
294 | 299 | echo "export OTMEDIA_HOME=$PWD" |
295 | 300 | echo "export PATH=\$PATH:$OTMEDIA_HOME/main_tools" |
296 | 301 | echo "export SRILM_BIN=$SRILM/bin/$MACHINE_TYPE" |
302 | +if [ $SCORING -eq 1 ] | |
303 | +then | |
304 | + echo "export PATH=\$PATH:$OTMEDIA_HOME/tools/install/bin" | |
305 | + echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$OTMEDIA_HOME/tools/install/lib" | |
306 | +fi | |
307 | + | |
297 | 308 | |
298 | 309 | |
299 | 310 | echo "${txtwht} \\\\ " |
tools/lia_ltbox/lia_ne_v2.2/.README.txt.swp
No preview for this file type