Previous 199869 Revisions Next

r18777 Tuesday 30th October, 2012 at 07:48:43 UTC by Miodrag Milanović
Changed build.cmd and whatsnew.cmd for new svn and new build methods (nw)
[/build]build.cmd whatsnew.cmd

build/build.cmd
r18776r18777
3333 
3434 
3535@rem --- figure out what to do based on input parameters
36set /a PROCS=%NUMBER_OF_PROCESSORS% + 1
36set /a PROCS=%NUMBER_OF_PROCESSORS% * 2 + 1
3737set MAKEPARAMS=-j %PROCS%
3838set RESUME=0
3939set REVISION=%1
r18776r18777
5656set DIFFNAME=%2u%3.diff
5757set DIFFZIP=%2u%3_diff.zip
5858set WHATSNEWNAME=whatsnew_%2u%3.txt
59set MESSNEWNAME=messnew_%2u%3.txt
5960set WHATSNEW=whatsnew\%WHATSNEWNAME%
61set MESSNEW=messnew\%MESSNEWNAME%
6062set SRCBRANCH=mame%2
6163set SRCSUFFIX=
6264if not "%3"=="1" set /a SRCSUFFIX=%3-1
r18776r18777
6971 
7072 
7173@rem --- see if the branch exists
72svn list svn://mamedev.org/mame/tags/%SRCBRANCH% %NULLOUT% %NULLERR% || goto :nosourcebranch
73svn list svn://mamedev.org/mame/tags/%DSTBRANCH% %NULLOUT% %NULLERR% && goto :destexists
74svn list svn://dspnet.fr/mame/tags/%SRCBRANCH% %NULLOUT% %NULLERR% || goto :nosourcebranch
75svn list svn://dspnet.fr/mame/tags/%DSTBRANCH% %NULLOUT% %NULLERR% && goto :destexists
7476@echo Target branch %DSTBRANCH% doesn't exist; promoting main branch....
7577 
7678 
r18776r18777
8789 
8890@rem --- all systems go, create the branch
8991@echo Creating target branch %DESTBRANCH%....
90if "%TEST%" == "" svn copy svn://mamedev.org/mame/trunk -r %REVISION% svn://mamedev.org/mame/tags/%DSTBRANCH% -m "MAME %VERSION% tag"
92svn copy svn://dspnet.fr/mame/trunk -r %REVISION% svn://dspnet.fr/mame/tags/%DSTBRANCH% -m "MAME %VERSION% tag"
9193 
9294 
9395@rem --- now do the diff
r18776r18777
9597@echo Generating the full diff....
9698if exist temp rd /s/q temp
9799if exist %DIFFNAME% del %DIFFNAME%
98svn export svn://mamedev.org/mame/tags/%SRCBRANCH% temp\%SRCBRANCH%
99svn export svn://mamedev.org/mame/tags/%DSTBRANCH% temp\%DSTBRANCH%
100svn export svn://dspnet.fr/mame/tags/%SRCBRANCH% temp\%SRCBRANCH%
101svn export svn://dspnet.fr/mame/tags/%DSTBRANCH% temp\%DSTBRANCH%
100102cd temp
101103for /f "usebackq" %%i in (`dir /b %SRCBRANCH%`) do ( move %SRCBRANCH%\%%i %%i-old && move %DSTBRANCH%\%%i %%i && diff -Nru %%i-old %%i >>..\%DIFFNAME% )
102104cd ..
103@rem svn diff svn://mamedev.org/mame/tags/%SRCBRANCH% svn://mamedev.org/mame/tags/%DSTBRANCH% >%DIFFNAME%
105@rem svn diff svn://dspnet.fr/mame/tags/%SRCBRANCH% svn://dspnet.fr/mame/tags/%DSTBRANCH% >%DIFFNAME%
104106 
105107 
106108@rem --- now package the diff
107109@echo Zipping the results....
108110if exist %DIFFZIP% del %DIFFZIP%
109111if exist %WHATSNEWNAME% del %WHATSNEWNAME%
112if exist %WHATSNEWNAME% del %MESSNEWNAME%
110113copy %WHATSNEW% %WHATSNEWNAME% %NULLOUT%
1117za a -mpass=4 -mfb=255 -y -tzip %DIFFZIP% %DIFFNAME% %WHATSNEWNAME%
114copy %MESSNEW% %MESSNEWNAME% %NULLOUT%
1157za a -mpass=4 -mfb=255 -y -tzip %DIFFZIP% %DIFFNAME% %WHATSNEWNAME% %MESSNEWNAME%
112116if exist %WHATSNEWNAME% del %WHATSNEWNAME%
117if exist %MESSNEWNAME% del %MESSNEWNAME%
113118 
114119@goto :eof
115120 
r18776r18777
124129 
125130@rem --- set up variables for a full update
126131set WHATSNEW=whatsnew\whatsnew_%2.txt
132set MESSNEW=messnew\messnew_%2.txt
127133set DSTBRANCH=mame%2
128134set FINALZIP=mame%2s
129135set FINALBINZIP=mame%2b
r18776r18777
134140 
135141 
136142@rem --- see if the branch exists
137svn list svn://mamedev.org/mame/tags/%DSTBRANCH% %NULLOUT% %NULLERR% && goto :destexistsfull
143svn list svn://dspnet.fr/mame/tags/%DSTBRANCH% %NULLOUT% %NULLERR% && goto :destexistsfull
138144@echo Target branch %DSTBRANCH% doesn't exist; promoting main branch....
139145 
140146 
r18776r18777
151157 
152158@rem --- all systems go, create the branch
153159@echo Creating target branch %DESTBRANCH%....
154if "%TEST%" == "" svn copy svn://mamedev.org/mame/trunk -r %REVISION% svn://mamedev.org/mame/tags/%DSTBRANCH% -m "MAME %VERSION% tag"
160if "%TEST%" == "" svn copy svn://dspnet.fr/mame/trunk -r %REVISION% svn://dspnet.fr/mame/tags/%DSTBRANCH% -m "MAME %VERSION% tag"
155161 
156162 
157163@rem --- export the tree for building
158164:destexistsfull
159165@echo Checking out a temp copy....
160166if exist tempbuild rd /s/q tempbuild
161svn export svn://mamedev.org/mame/tags/%DSTBRANCH% tempbuild %NULLOUT%
167svn export svn://dspnet.fr/mame/tags/%DSTBRANCH% tempbuild %NULLOUT%
162168 
163169 
164170@rem --- build the debug version
r18776r18777
177183set SYMLEVEL=1
178184set OSD=
179185pushd tempbuild
180call :performbuild mamed windows\mamed || goto :eof
186call :performbuild mamed windowsd || goto :eof
181187popd
182188 
183189 
r18776r18777
194200set SYMLEVEL=1
195201set SUFFIX=
196202pushd tempbuild
197call :performbuild mame windows\mame || goto :eof
203call :performbuild mame windows || goto :eof
198204popd
199205 
200206 
r18776r18777
212218set SYMLEVEL=1
213219set SUFFIX=pp
214220pushd tempbuild
215call :performbuild mamepp windows\mamepp || goto :eof
221call :performbuild mamepp windowspp || goto :eof
216222popd
217223 
218224 
r18776r18777
231237set SYMLEVEL=1
232238set SUFFIX=
233239pushd tempbuild
234@rem call :performbuild mame64 windows\mame64 || goto :eof
240call :performbuild mame64 windows64 || goto :eof
235241popd
236242 
237243 
238244@rem --- now export the actual tree
239245@echo Checking out a temp copy....
240246if exist tempexport rd /s/q tempexport
241svn export svn://mamedev.org/mame/tags/%DSTBRANCH% tempexport %NULLOUT%
247svn export svn://dspnet.fr/mame/tags/%DSTBRANCH% tempexport %NULLOUT%
242248 
243249 
244250@rem --- copy in the whatsnew file
245copy %WHATSNEW% tempexport\whatsnew.txt
251rem copy %WHATSNEW% tempexport\whatsnew.txt
246252 
247253 
248254@rem --- now package the results
r18776r18777
262268 
263269@rem --- now build the official binary
264270@echo Building official binary....
265call :buildbinary mame %FINALBINZIP%.exe
271call :buildbinary mame %FINALBINZIP%.exe windows
266272 
267273@echo Building official debug binary....
268call :buildbinary mamed %FINALBINZIP%_debug.exe
274call :buildbinary mamed %FINALBINZIP%_debug.exe windowsd
269275 
270276@echo Building official I686 binary....
271call :buildbinary mamepp %FINALBINZIP%_i686.exe
277call :buildbinary mamepp %FINALBINZIP%_i686.exe windowspp
272278 
273279@echo Building official 64-bit binary....
274call :buildbinary mame64 %FINALBINZIP%_64bit.exe
280call :buildbinary mame64 %FINALBINZIP%_64bit.exe windows64
275281 
276282goto :eof
277283 
r18776r18777
292298copy ..\%WHATSNEW% whatsnew.txt
293299copy ..\tempbuild\%1.exe
294300copy ..\tempbuild\%1.sym
295copy ..\tempbuild\obj\windowsd\%1\chdman.exe
296copy ..\tempbuild\obj\windowsd\%1\ldverify.exe
297copy ..\tempbuild\obj\windowsd\%1\ldresample.exe
298copy ..\tempbuild\obj\windowsd\%1\romcmp.exe
299copy ..\tempbuild\obj\windowsd\%1\jedutil.exe
300copy ..\tempbuild\obj\windowsd\%1\ledutil.exe
301copy ..\tempbuild\obj\windowsd\%1\unidasm.exe
301copy ..\tempbuild\obj\%3\chdman.exe 
302copy ..\tempbuild\obj\%3\ldverify.exe
303copy ..\tempbuild\obj\%3\ldresample.exe
304copy ..\tempbuild\obj\%3\romcmp.exe
305copy ..\tempbuild\obj\%3\jedutil.exe
306copy ..\tempbuild\obj\%3\ledutil.exe
307copy ..\tempbuild\obj\%3\unidasm.exe
302308mkdir docs
303309copy ..\tempbuild\docs\*.* docs
304310mkdir hash
r18776r18777
404410set SYMBOLS=1
405411set SYMLEVEL=1
406412set SUFFIX=
407call :performbuild windows\mamed || goto :eof
413call :performbuild windowsd || goto :eof
408414popd
409415 
410416@echo Verifying validation....
r18776r18777
423429set SYMBOLS=
424430set SYMLEVEL=
425431set SUFFIX=
426@rem call :performbuild windows\mame64d || goto :eof
432call :performbuild windows64d || goto :eof
427433popd
428434 
429435@echo Verifying 32-bit SDL debug build....
r18776r18777
439445set SYMBOLS=
440446set SYMLEVEL=
441447set SUFFIX=
442call :performbuild sdl\sdlmamed || goto :eof
448call :performbuild sdld || goto :eof
443449popd
444450 
445451@echo Verifying 64-bit SDL debug build....
r18776r18777
455461set SYMBOLS=
456462set SYMLEVEL=
457463set SUFFIX=
458@rem call :performbuild sdl\sdlmame64d || goto :eof
464call :performbuild sdl64d || goto :eof
459465popd
460466 
461467@echo Verifying 32-bit Windows release build....
r18776r18777
471477set SYMBOLS=
472478set SYMLEVEL=
473479set SUFFIX=
474call :performbuild windows\mame || goto :eof
480call :performbuild windows || goto :eof
475481popd
476482 
477483@echo Verifying 64-bit Windows release build....
r18776r18777
487493set SYMBOLS=
488494set SYMLEVEL=
489495set SUFFIX=
490@rem call :performbuild windows\mame64 || goto :eof
496call :performbuild windows64 || goto :eof
491497popd
492498 
493499@echo Verifying 32-bit SDL release build....
r18776r18777
503509set SYMBOLS=
504510set SYMLEVEL=
505511set SUFFIX=
506call :performbuild sdl\sdlmame || goto :eof
512call :performbuild sdl || goto :eof
507513popd
508514 
509515@echo Verifying 64-bit SDL release build....
r18776r18777
519525set SYMBOLS=
520526set SYMLEVEL=
521527set SUFFIX=
522@rem call :performbuild sdl\sdlmame64 || goto :eof
528call :performbuild sdl64 || goto :eof
523529popd
524530 
525531set VALIDATED=1
build/whatsnew.cmd
r18776r18777
11@echo off
22set LASTREV=r15683
3for /f "usebackq tokens=1-2 delims=:" %%i in (`svn info svn://mamedev.org/mame/tags`) do if /i "%%i"=="last changed rev" set LASTREV=%%j
3for /f "usebackq tokens=1-2 delims=:" %%i in (`svn info svn://dspnet.fr/mame/tags`) do if /i "%%i"=="last changed rev" set LASTREV=%%j
44echo Last rev = %LASTREV%
5svn log svn://mamedev.org/mame/trunk -v -r %LASTREV%:HEAD
5svn log svn://dspnet.fr/mame/trunk -v -r %LASTREV%:HEAD

Previous 199869 Revisions Next


© 1997-2024 The MAME Team