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 / train / omega-llm / tools / combined / build.sh

18 lines · 662 bytes Raw Blame History
1#!/bin/sh
2set -eu
3umask 077
4[ "$#" = 1 ] || { echo 'usage: build.sh NEW_KIT_DIRECTORY' >&2; exit 2; }
5here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
6root=$(CDPATH= cd -- "$here/../../../.." && pwd)
7mkdir -- "$1"
8kit=$(CDPATH= cd -- "$1" && pwd)
9cp "$root/seed/out/omc" "$kit/omc"
10for name in om_formalize om_sketch om_synth; do
11 "$kit/omc" < "$root/seed/helix/ollm_factory/$name.om" > "$kit/$name"
12 chmod 700 "$kit/$name"
13done
14sed '/^fn main to int$/,$d' "$here/../bench/bench.om" > "$kit/combined.src"
15cat "$here/combined.om" >> "$kit/combined.src"
16"$kit/omc" < "$kit/combined.src" > "$kit/combined"
17chmod 700 "$kit/combined"
18cp "$here/solve" "$kit/solve"