Spaces:
Sleeping
Sleeping
File size: 539 Bytes
fb5100c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#!/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!" |