diff options
| author | Emil A. Overbeck <emil.a.overbeck@gmail.com> | 2026-07-19 03:46:27 +0200 |
|---|---|---|
| committer | Emil A. Overbeck <emil.a.overbeck@gmail.com> | 2026-07-19 03:46:27 +0200 |
| commit | ff85499d5567c36ce63e2d7903d5f872fd9aef1d (patch) | |
| tree | b15b1cab27e5bb5a2bb8d797905e47d08bcca889 /scripts | |
| parent | 37b5f7c8bd0b4c0e297614577edb7b634c13d700 (diff) | |
| download | forts_clone-ff85499d5567c36ce63e2d7903d5f872fd9aef1d.tar.gz forts_clone-ff85499d5567c36ce63e2d7903d5f872fd9aef1d.zip | |
Makefile
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build.sh | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100755 index 6027e75..0000000 --- a/scripts/build.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash -# Build and run the Forts Clone inside a podman container. -# Usage: ./scripts/build.sh [--shell] - -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -PROJECT_DIR="$(dirname "$SCRIPT_DIR")" -IMAGE_NAME="forts-clone-dev" - -cd "$PROJECT_DIR" - -# Build container image (cached) -echo "==> Building container image..." -podman build -t "$IMAGE_NAME" . - -if [ "${1:-}" = "--shell" ]; then - echo "==> Starting shell in container..." - exec podman run -it --rm \ - -v "$PROJECT_DIR":/src:Z \ - --userns=keep-id \ - "$IMAGE_NAME" \ - bash -else - echo "==> Configuring and building..." - podman run -it --rm \ - -v "$PROJECT_DIR":/src:Z \ - --userns=keep-id \ - "$IMAGE_NAME" \ - bash -c " - meson setup builddir \ - --buildtype=debugoptimized \ - -Dwarning_level=3 \ - -Dcpp_std=c++20 \ - --wipe - meson compile -C builddir -j$(nproc) - " - echo - echo "==> Build complete. Run with: ./builddir/forts-clone" -fi |
