#!/bin/bash # Build script for Lumacs set -e # Exit on error echo "Building Lumacs..." # Create build directory if it doesn't exist if [ ! -d "build" ]; then echo "Creating build directory..." mkdir build fi cd build # Configure with CMake echo "Configuring with CMake..." cmake .. # Build the project echo "Building project..." cmake --build . # Check if binary was created if [ -f "lumacs" ]; then echo "✓ Build successful! Binary created at build/lumacs" echo "Run './build/lumacs' to start the editor" else echo "✗ Build failed - binary not found" exit 1 fi