#!/bin/sh
DoExitAsm ()
{ echo "An error occurred while assembling $1"; exit 1; }
DoExitLink ()
{ echo "An error occurred while linking $1"; exit 1; }
echo Assembling basic
/Library/Developer/CommandLineTools/usr/bin/clang -x assembler -c -target x86_64-apple-macosx10.8.0 -o /Users/shiraishi/BASIC073xJa/basic.o  -x assembler /Users/shiraishi/BASIC073xJa/basic.s
if [ $? != 0 ]; then DoExitAsm basic; fi
rm /Users/shiraishi/BASIC073xJa/basic.s
echo Linking /Users/shiraishi/BASIC073xJa/basic
OFS=$IFS
IFS="
"
/Library/Developer/CommandLineTools/usr/bin/ld     -framework Cocoa      -order_file /Users/shiraishi/BASIC073xJa/symbol_order.fpc -multiply_defined suppress -L. -o /Users/shiraishi/BASIC073xJa/basic `cat /Users/shiraishi/BASIC073xJa/link2164.res` -filelist /Users/shiraishi/BASIC073xJa/linkfiles2164.res
if [ $? != 0 ]; then DoExitLink /Users/shiraishi/BASIC073xJa/basic; fi
IFS=$OFS
