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 -w -d Sources=: -f "{MAKE_FILE}" RomMondo > "{MAKE_OUT}"
|
||||||
"{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
|
||||||
|
|
|
@ -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"
|
|
@ -51,6 +51,10 @@ Using EMPW, that's:
|
||||||
|
|
||||||
empw EasyBuild
|
empw EasyBuild
|
||||||
|
|
||||||
|
Even nicer is this Unix shell script, which avoids unnecessary launches of the emulator:
|
||||||
|
|
||||||
|
./EasyBuild.sh
|
||||||
|
|
||||||
The 3 MB image will be at `BuildResults/RISC/Image/RomMondo`.
|
The 3 MB image will be at `BuildResults/RISC/Image/RomMondo`.
|
||||||
|
|
||||||
What's next?
|
What's next?
|
||||||
|
|
Loading…
Reference in New Issue