-
Notifications
You must be signed in to change notification settings - Fork 0
/
SETUP.bash
23 lines (21 loc) · 985 Bytes
/
SETUP.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# @file SETUP.bash
# @brief Source this file to add the Portage Text Processing tools to your PATH
#
# @author Eric Joanis / Samuel Larkin
#
# Traitement multilingue de textes / Multilingual Text Processing
# Technologies numériques / Digital Technologies
# Conseil national de recherches Canada / National Research Council Canada
# Copyright 2022, Sa Majeste le Roi du Chef du Canada /
# Copyright 2022, His Majesty the King in Right of Canada
echo "PortageTextProcessing, NRC-CNRC, (c) 2004 - 2022, His Majesty the King in Right of Canada" >&2
SOURCE="${BASH_SOURCE[0]}"
if [[ -h $SOURCE ]]; then
SOURCE=$(readlink -f $SOURCE)
fi
BASE_DIR="$( cd "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
echo "PortageTextProcessing path: $BASE_DIR" >&2
export PATH=$BASE_DIR/bin:$PATH
export PERL5LIB=$BASE_DIR/lib${PERL5LIB:+:$PERL5LIB}
# Note that some of our python file are both libraries and cli scripts.
export PYTHONPATH=$BASE_DIR/bin:$BASE_DIR/lib${PYTHONPATH:+:$PYTHONPATH}