1 | #!/usr/bin/env bash |
2 | set -o pipefail |
3 | set -o errexit |
4 | shopt -s strict:all 2>/dev/null || true # dogfood for OSH |
5 | |
6 | REPO_ROOT=$(cd "$(dirname $0)/.."; pwd) |
7 | readonly REPO_ROOT |
8 | |
9 | readonly DEPS_DIR=$REPO_ROOT/../oil_DEPS |
10 | |
11 | source build/common.sh |
12 | source devtools/run-task.sh |
13 | |
14 | compile_souffle() { |
15 | in=$1 |
16 | out=$2 |
17 | PATH=$DEPS_DIR/souffle/bin:$PATH souffle -g - -I mycpp/datalog $in > $out |
18 | } |
19 | |
20 | run-task "$@" |