sourcegraph/dev/scip-syntax-install.sh
Anton Sviridov d5f53378b9
Syntactic indexing: add database schema and dbworker (#60055)
Adds a basic schema for syntactic code intel indexes (up and down migration)
    Sets up everything required to use dbworker interface
    Adds a stub indexing worker implementation
    Adds tests to ensure conformance with dbworker interface (run against real postgres)
2024-02-08 18:00:21 +00:00

35 lines
599 B
Bash
Executable File

#!/usr/bin/env bash
set -euf -o pipefail
pushd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null
mkdir -p .bin
# TODO: add similar task to zoekt alpine
NAME="scip-syntax"
TARGET="$PWD/.bin/${NAME}"
if [ $# -ne 0 ]; then
if [ "$1" == "which" ]; then
echo "$TARGET"
exit 0
fi
fi
function ctrl_c() {
printf "[-] Installation cancelled.\n"
exit 1
}
trap ctrl_c INT
function build_scip_syntax {
cd docker-images/syntax-highlighter/crates/scip-syntax
cargo build --bin scip-syntax --target-dir target
cp ./target/debug/scip-syntax "$TARGET"
}
build_scip_syntax
popd >/dev/null