forked from jhclark/multeval
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulteval.sh
More file actions
executable file
·25 lines (22 loc) · 758 Bytes
/
multeval.sh
File metadata and controls
executable file
·25 lines (22 loc) · 758 Bytes
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
#!/usr/bin/env bash
set -euo pipefail
scriptDir=$(dirname $0)
source $scriptDir/constants
$scriptDir/get_deps.sh
METEOR_FLAGS="-XX:+UseCompressedOops -Xmx2g"
flags="$METEOR_FLAGS" # start with meteor heap size
for arg in "$@"; do
if [[ "$arg" == "--metrics" ]]; then
# We might not be using METEOR, so don't request any additional heap
flags=""
fi
# TODO: Check if this follows --metric
if [[ "$arg" == "meteor" ]]; then
# We're using meteor after all, use the big heap
flags="$METEOR_FLAGS"
fi
done
# Specify -Dfile.encoding so that the meteor paraphrase tables load properly
java -Dfile.encoding=UTF8 $flags \
-cp $terJar:$meteorJar:$scriptDir/multeval-${version}.jar \
multeval.MultEval "$@"