interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / uxl-run.sh

36 lines · 1507 bytes Raw Blame History
1#!/bin/sh
2# One command for the UXL checks.
3# On AArch64 Linux with runnable seed/out/omc and default (zero-argument) invocation,
4# runs pure seeded-Omega seed/build/release.om uxl directly (zero Python on the delivery path).
5# Cross-OS fallback (macOS/x86/Windows) or any CLI flags (--install-deps, --evidence, --level1,
6# --help, unknown flags, etc.) pass through to tools/uxl/run_all.py without dropping flags.
7cd "$(dirname "$0")" || exit 1
8want_install=0
9want_py=0
10for arg in "$@"; do
11 case "$arg" in
12 --install-deps) want_install=1; want_py=1 ;;
13 *) want_py=1 ;;
14 esac
15done
16if [ "$want_py" -eq 0 ] && [ -x seed/out/omc ] && [ "$(uname -s)-$(uname -m)" = "Linux-aarch64" ]; then
17 mkdir -p build/uxl-om
18 BIN="build/uxl-om/om-release.$$"
19 WORK="build/uxl-om/work.$$"
20 trap 'rm -rf "$BIN" "$WORK"' EXIT INT TERM
21 cat seed/build/common.om seed/build/release.om | seed/out/omc > "$BIN" || exit 1
22 chmod 755 "$BIN"
23 rc=0
24 "./$BIN" uxl "$WORK" || rc=$?
25 exit "$rc"
26fi
27if [ "$want_install" -eq 1 ] && ! command -v python3 >/dev/null 2>&1; then
28 if [ -f /etc/debian_version ]; then
29 if [ "$(id -u)" -eq 0 ]; then
30 DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3 || exit 1
31 else
32 sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3 || exit 1
33 fi
34 fi
35fi
36exec python3 tools/uxl/run_all.py "$@"