enso/run
Michał Wawrzyniec Urbańczyk ad69eeb4ad
Build script merge (#3743)
Merged the build script into main repository. Some related cleanups.
2022-10-10 23:38:48 +02:00

13 lines
434 B
Bash
Executable File

#!/bin/bash
set -e # Exit on error.
# Get the directory of the script, as per https://stackoverflow.com/a/246128
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
BIN_CRATE_NAME=enso-build-cli
TARGET_DIR="${SCRIPT_DIR}/target/enso-build/"
TARGET_EXE="${TARGET_DIR}buildscript/${BIN_CRATE_NAME}"
cargo build --profile buildscript --target-dir "$TARGET_DIR" --package ${BIN_CRATE_NAME}
"$TARGET_EXE" $@