2024-09-12 06:58:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-09-12 08:46:47 +00:00
|
|
|
if [ "$#" -lt "1" ]; then
|
2024-09-12 06:58:48 +00:00
|
|
|
echo "ERROR: You must pass the program name! For instance, to build maze.elf,"
|
|
|
|
echo "pass in just 'maze'"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-09-12 08:46:47 +00:00
|
|
|
make -f Makefile_PS2 PROGRAM_PS2="$1"
|
|
|
|
|
|
|
|
if [ "$#" -gt "1" ]; then
|
|
|
|
echo "Running on $2"
|
|
|
|
ps2client -h "$2" reset
|
2024-09-12 17:58:08 +00:00
|
|
|
sleep 1
|
2024-09-12 08:46:47 +00:00
|
|
|
ps2client -h "$2" execee host:$1.elf
|
|
|
|
fi
|