-
Notifications
You must be signed in to change notification settings - Fork 18
/
path.sh
executable file
·29 lines (27 loc) · 1.37 KB
/
path.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
#!/bin/sh
# -------DO NOT EDIT THIS SCRIPT ----------
# do not set a hard-coded KALDI_ROOT here!
# you can do so in path.custom.sh instead
# or create a host/domain specific path.*.sh
# -----------------------------------------
if [ -z "$KALDI_ROOT" ]; then
HOST=$(hostname)
DOMAIN=$(hostname -d)
if [ -e "path.$HOST.sh" ]; then
#source host-specific path.sh
. "path.$HOST.sh"
elif [ -e "path.$DOMAIN.sh" ]; then
#source domain specific path.sh
. "path.$DOMAIN.sh"
elif [ -e "path.custom.sh" ]; then
#source custom path.sh
. "path.custom.sh"
fi
fi
if [ -z "$KALDI_ROOT" ]; then
echo "Kaldi root not set! do an export KALDI_ROOT manually or create a path.custom.sh with the export!" >&2
exit 2
fi
[ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh
export PATH=$PWD/utils/:$KALDI_ROOT/src/bin:$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/tools/sctk/bin:$KALDI_ROOT/src/fstbin/:$KALDI_ROOT/src/gmmbin/:$KALDI_ROOT/src/featbin/:$KALDI_ROOT/src/lm/:$KALDI_ROOT/src/sgmmbin/:$KALDI_ROOT/src/sgmm2bin/:$KALDI_ROOT/src/fgmmbin/:$KALDI_ROOT/src/latbin/:$KALDI_ROOT/src/nnetbin:$KALDI_ROOT/src/nnet2bin/:$KALDI_ROOT/src/kwsbin:$KALDI_ROOT/src/online2bin/:$KALDI_ROOT/src/ivectorbin/:$KALDI_ROOT/src/lmbin/:$KALDI_ROOT/src/nnet3bin/:$PWD:$PATH
export LC_ALL=C #do we really need this?? I'd rather have a UTF-8 locale! (proycon)