mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2025-04-14 07:37:08 +00:00
Add Unix shell script to wrap EasyBuild
This commit is contained in:
parent
6d103981d8
commit
77023fea0f
@ -13,3 +13,8 @@ End
|
||||
|
||||
Make -w -d Sources=: -f "{MAKE_FILE}" RomMondo > "{MAKE_OUT}"
|
||||
"{MAKE_OUT}"
|
||||
|
||||
# So that RomMondo is definitely the newest thing in the tree!
|
||||
SetDirectory :BuildResults:RISC:Image:
|
||||
Catenate RomMondo > RomMondoX
|
||||
Rename -y RomMondoX RomMondo
|
||||
|
19
EasyBuild.sh
Executable file
19
EasyBuild.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Avoid the uber-slow step of running the emulator when nothing has changed
|
||||
|
||||
if [ ! -f BuildResults/RISC/Image/RomMondo ]
|
||||
then
|
||||
echo "RomMondo not yet built"
|
||||
echo "> Starting emulator to build RomMondo"
|
||||
empw EasyBuild
|
||||
echo "< Emulator done"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "Checking for files updated since RomMondo"
|
||||
find . ! -regex '.*/\..*' ! -iname '*.dmg' -newer BuildResults/RISC/Image/RomMondo | grep . || exit 0
|
||||
|
||||
echo "> Starting emulator to build RomMondo"
|
||||
empw EasyBuild
|
||||
echo "< Emulator done"
|
Loading…
x
Reference in New Issue
Block a user