|
|
@@ -20,13 +20,6 @@ while [ -n "$1" ]; do
|
|
|
shift
|
|
|
done
|
|
|
|
|
|
-if [ -z "$ncpus" ]; then
|
|
|
- ncpus=$(nproc)
|
|
|
-fi
|
|
|
-if [ -z "$cpurange" ]; then
|
|
|
- cpurange="0-$((ncpus - 1))"
|
|
|
-fi
|
|
|
-
|
|
|
abort() {
|
|
|
echo "Step $1 failed."
|
|
|
echo "To restart from this step, try running:"
|
|
|
@@ -64,6 +57,7 @@ if [[ ! -d parsing-results/lox-old || ! -d parsing-results/lox-new || ! -d parsi
|
|
|
# Clean up any remnants of previous attempts and try again
|
|
|
rm -rf parsing-results/{lox-{old,new},troll-patrol}
|
|
|
|
|
|
+ # Arguments here may be empty; the generate-lox-results.sh script handles this case
|
|
|
./scripts/generate-lox-results.sh -N "$cpurange" -n "$ncpus" || abort "lox-gen"
|
|
|
fi
|
|
|
|