mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 08:54:25 +00:00
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
14 lines
696 B
Shell
Executable file
14 lines
696 B
Shell
Executable file
#!/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))"
|