Commit a68c16d

Nick committed on
Fix build script
commit a68c16d2a76c2bb9c8b94c5521f2f4ebf59a837e parent bc9db8b
2 changed files +9−9
Modifiedbuild-release-unix.sh +5−5
@@ -6,10 +6,10 @@ link=$(which rgblink)
6 fix=$(which rgbfix) 6 fix=$(which rgbfix)
7 ffm=$(which ffmpeg) 7 ffm=$(which ffmpeg)
8 8
9 if [ -z "$asm" ]; then {echo "rgbasm not found!"; exit 1; } fi 9 if [ -z "$asm" ]; then { echo "rgbasm not found!"; exit 1; } fi
10 if [ -z "$link" ]; then {echo "rgblink not found!"; exit 1; } fi 10 if [ -z "$link" ]; then { echo "rgblink not found!"; exit 1; } fi
11 if [ -z "$fix" ]; then {echo "rgbfix not found!"; exit 1; } fi 11 if [ -z "$fix" ]; then { echo "rgbfix not found!"; exit 1; } fi
12 if [ -z "$ffm" ]; then {echo "ffmpeg not found!"; exit 1; } fi 12 if [ -z "$ffm" ]; then { echo "ffmpeg not found!"; exit 1; } fi
13 13
14 outdir="$1" 14 outdir="$1"
15 if [ -z "$outdir" ] 15 if [ -z "$outdir" ]
@@ -21,7 +21,7 @@ fi
21 # Build halt.gb 21 # Build halt.gb
22 22
23 function check_fail() { 23 function check_fail() {
24 if [ $? -eq 0 ] 24 if [ $? -ne 0 ]
25 then 25 then
26 echo "Failed, aborting." 26 echo "Failed, aborting."
27 exit 1 27 exit 1
Modifiedbuild-release-win.bat +4−4
@@ -22,18 +22,18 @@ if x%ffmpeg%==x (
22 exit/b 1 22 exit/b 1
23 ) 23 )
24 24
25 set) outdir=%1 25 set outdir=%1
26 if x%outdir%==x goto no_outdir 26 if x%outdir%==x goto no_outdir
27 27
28 :: Build halt.gb 28 :: Build halt.gb
29 %rgbasm% -o halt.obj halt.asm 29 rgbasm -o halt.obj halt.asm
30 if not errorlevel 0 goto buildfail 30 if not errorlevel 0 goto buildfail
31 %rgblink% -n %outdir%\halt.sym -o %outdir%\halt.gb halt.obj 31 rgblink -n %outdir%\halt.sym -o %outdir%\halt.gb halt.obj
32 if not errorlevel 0 goto buildfail 32 if not errorlevel 0 goto buildfail
33 33
34 erase halt.obj 34 erase halt.obj
35 35
36 %rgbfix% -p0 -v %outdir%\halt.gb 36 rgbfix -p0 -v %outdir%\halt.gb
37 if not errorlevel 0 goto fixfail 37 if not errorlevel 0 goto fixfail
38 38
39 :: Copy needed stuff 39 :: Copy needed stuff