OILS / build / ninja-rules-datalog.sh View on Github | oilshell.org

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