#!/bin/sh echo "⏳ Starting setup..." # Step 1: Install GnuCOBOL if not installed if ! command -v cobc >/dev/null 2>&1; then echo "🔧 Installing GnuCOBOL..." apt-get update && apt-get install -y gnucobol fi # Step 2: Compile COBOL programs cd cobol || { echo "❌ Failed to enter cobol directory"; exit 1; } echo "⚙️ Compiling COBOL programs..." cobc -x account.cbl cobc -x loan.cbl # Step 3: Make sure they're executable chmod +x account loan # Step 4: List what was created ls -l account loan echo "✅ Setup complete!"