#!/bin/bash # --------------------------------------------------------------------- # build.sh — Mad-Pascal, Chapter 1 of the Atari Legacy course # Wojciech "Bocianu" Bocianski, Atari Legacy Issue 01 (Fig. 6) # # Transcribed by the editorial team from the printed listing. # Adjust the four paths below to wherever you unpacked the tools. # --------------------------------------------------------------------- MP_BIN="/home/bocianu/Mad-Pascal/bin/linux_x86_64/mp" MADS_BIN="/home/bocianu/Mad-Assembler/bin/linux_x86_64/mads" MP_BASE="/home/bocianu/Mad-Pascal/base" ALTIRRA="/home/bocianu/altirra/altirra.AppImage" NAME="hello" $MP_BIN $NAME.pas if [ $? -eq 0 ]; then $MADS_BIN $NAME.a65 -x -i:$MP_BASE -o:$NAME.xex fi if [ $? -eq 0 ]; then $ALTIRRA --run $NAME.xex fi