22 lines
390 B
Bash
Executable File
22 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR=$(dirname "$0")
|
|
|
|
pushd $SCRIPT_DIR
|
|
pushd ../compiler
|
|
dotnet build -c Release
|
|
popd
|
|
|
|
pushd core
|
|
time ../../compiler/bin/Release/net9.0/Compiler sys.nub print.nub --type=lib
|
|
popd
|
|
|
|
pushd program
|
|
time ../../compiler/bin/Release/net9.0/Compiler main.nub ../core/.build/out.nublib
|
|
popd
|
|
|
|
./program/.build/out
|
|
popd
|