mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 16:54:25 +00:00
Install, CI, seeds and docs for the compiler written in Finch
bootstrap/install.sh and a share/finch lookup for the runtime and std; an ARM64 Linux seed; bootstrap/README.md; CI builds from the seed on x64 and ARM64 and runs every test on Windows (Wine) and ARM64 (qemu); README, install and layout sections of the guides (EN+PL) no longer talk about CMake; editors know enum, match and export. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015f73FesGZGYPkmDvUcj6QX
This commit is contained in:
parent
636eaefe59
commit
81df9f8c3e
15 changed files with 125197 additions and 30152 deletions
14
bootstrap/install.sh
Executable file
14
bootstrap/install.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
# Installs the compiler you built (bootstrap/build.sh) under a prefix:
|
||||
# bootstrap/install.sh /usr/local (needs sudo)
|
||||
# bootstrap/install.sh ~/.local
|
||||
# finch goes to <prefix>/bin; the runtime and the standard library go to <prefix>/share/finch, where finch looks for them.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
prefix=${1:-/usr/local}
|
||||
[ -x build/finch ] || { echo "install: run bootstrap/build.sh first" >&2; exit 1; }
|
||||
mkdir -p "$prefix/bin" "$prefix/share/finch"
|
||||
cp build/finch "$prefix/bin/finch"
|
||||
rm -rf "$prefix/share/finch/runtime" "$prefix/share/finch/std"
|
||||
cp -r runtime std "$prefix/share/finch/"
|
||||
echo "installed: $prefix/bin/finch ($("$prefix/bin/finch" version))"
|
||||
Loading…
Reference in a new issue