Files
metabase/bin/build-driver.sh
Cam Saul 3c980639cb Build script overhaul 2023 (#28767)
* Build Script overhaul

* Remove stray deps.edn

* Include :ci profile for build and release tests

* Fix release script

* Update markdown dox

* Update another dox

* Tweakz

* Don't pin new version of data.xml to core project, just for build scripts

* Ignore unrecognized options

* Fix i18n/enumerate
2023-03-01 14:43:14 +00:00

23 lines
469 B
Bash
Executable File

#! /usr/bin/env bash
set -eo pipefail
driver="$1"
if [ ! "$driver" ]; then
echo "Usage: ./bin/build-driver.sh <driver> [:edition edition]"
exit -1
fi
# switch to project root directory if we're not already there
script_directory=`dirname "${BASH_SOURCE[0]}"`
cd "$script_directory/.."
source "./bin/check-clojure-cli.sh"
check_clojure_cli
source "./bin/clear-outdated-cpcaches.sh"
clear_outdated_cpcaches
clojure -X:build:drivers:build/driver :driver $@