nilson Posted October 12, 2003 Share Posted October 12, 2003 What is your buildscript for building Mozilla (Firebird, Thunderbird, etc.)Here is mine: ::Nilson's new K.I.S.S. build script. This better work.::environment variablescall D:\dev\batch\mozilla\mozset.batif "%1"=="-opt" ( set buildtype="opt" )if "%1"=="-norm" ( set buildtype="norm" )::which mozconfig?if "%1"=="-norm" ( set MOZCONFIG=D:\dev\mozilla\mozconfig\fb-norm.mozconfig && set opt="Unoptimized")if "%1"=="-opt" ( set MOZCONFIG=D:\dev\mozilla\mozconfig\fb-opt.mozconfig && set opt="Pentium3,SSE,MMX,fastmath,O2" )::clean out last build's stuffif "%2"=="-clean" ( cd D:\dev\mozilla\fbbuild && make clean )::main build processcd D:\dev\mozilla\mozilla\if "%3"=="-checkout" ( make -f client.mk checkout )set BLDBEGIN=%date% %time%make -f client.mk buildset BLDEND=%date% %time%::packaging stuffcd D:\dev\mozilla\fbbuild\distren bin MozillaFirebirdif exist D:\dev\mozilla\fbbuild\dist\MozillaFirebird\MozillaFirebird.exe ( call buildinfo.bat )if exist D:\dev\mozilla\fbbuild\dist\MozillaFirebird\MozillaFirebird.exe ( "C:\Program Files\7-zip\7z" a -r -t7z MozillaFirebird-%date%-%opt%-Nilson.7z MozillaFirebird\* ) ren MozillaFirebird bin::move package to buildarchiveif exist MozillaFirebird-%date%-%opt%-Nilson.7z ( move MozillaFirebird-%date%-%opt%-Nilson.7z D:\nilson\buildarchive\%buildtype%\MozillaFirebird-%date%-%opt%-Nilson.7z )::success statementecho "Build Successful"echo "---------------------------------"echo "| Build start time: " %BLDBEGIN%echo "| Build end time: " %$BLDEND%echo "----------------------------------" buildinfo.txt: ::create buildinfo file. thanks to Mike "Nova" Tigas (MadmanNova).cd D:\dev\mozilla\fbbuild\dist\MozillaFirebird\if exist "buildinfo.txt" (del /f /q buildinfo.txt)copy /A D:\dev\mozilla\empty\buildreport.txt D:\dev\mozilla\fbbuild\dist\MozillaFirebird\buildreport.txt echo ------------------------------------------------------------------>>buildreport.txtecho FB %date% - %buildtype%, %opt% >>buildreport.txtecho ------------------------------------------------------------------>>buildreport.txtecho Build: clobber, checkout>>buildreport.txtecho Builder: Nilson Cain, nilson1690[@]netscape[.]net>>buildreport.txtecho (http://home.earthlink.net/~nilsoncain/ OR http://nilsonscorner.dyndns.org/)>>buildreport.txtecho Build System: Pentium 4 2.60GHz w/ Hyperthreading, 1024MB PC2100 DDR RAM, Windows XP>>buildreport.txtecho (full specs @ http://http://home.earthlink.net/~nilsoncain/cpuz.html)>>buildreport.txtecho Build Target: i686-pc-cygwin>>buildreport.txtecho Compiler: MingW GCC version 3.3.1 (mingw special 20030804-1)>>buildreport.txtecho ------------------------------------------------------------------>>buildreport.txtecho Product: Mozilla Firebird>>buildreport.txtecho Date: %date%>>buildreport.txtecho Time: %time%>>buildreport.txtecho Optimization: %opt%echo Built to: D:\dev\mozilla\fbbuild\dist\>>buildreport.txtecho Build Start Time: %BLDBEGIN%>>buildreport.txtecho Build End Time: %BLDEND%>>buildreport.txtecho -------------------MOZCONFIG-------------------------------->>buildreport.txtcopy /A buildreport.txt +%MOZCONFIG%cd D:\dev\mozilla\fbbuild\dist\ Quote Link to comment Share on other sites More sharing options...
Neil P Posted October 13, 2003 Share Posted October 13, 2003 Mine is put to shame by yours, but here it is anyway: cd c:\mozilla\call mozset.batcd c:\mozilla\mozilla\make cleanmake -f client.mk Hey, it gets the job done Quote Link to comment Share on other sites More sharing options...
nilson Posted October 13, 2003 Author Share Posted October 13, 2003 If you add a packaging system, that will do you just fine.Mine was a lot like yours, just with a packageing system. Here's my old one: call D:\dev\batch\mozilla\mozset.batcd D:\dev\mozilla\fbbuildmake cleancd D:\dev\mozilla\mozillamake -f client.mkcd D:\dev\mozilla\fbbuild\distmkdir MozillaFirebirdmove D:\dev\mozilla\fbbuild\dist\bin D:\dev\mozilla\fbbuild\dist\MozillaFirebirdcopy /A D:\dev\mozilla\mozilla\.mozconfig D:\dev\mozilla\fbbuild\dist\MozillaFirebird"C:\Program Files\7-zip\7z" a -r -t7z MozillaFirebird-%date%-P4sse2-Nilson.7z MozillaFirebirdmove MozillaFirebird-%date%-Nilson.7z D:\nilson\buildarchive\optcd ..\move MozillaFirebird\bin .\del /f /q MozillaFirebirdcd D:\dev But the new one is so much better I used to not even use a script; I just did it myself in the console. Quote Link to comment Share on other sites More sharing options...
Neil P Posted October 13, 2003 Share Posted October 13, 2003 If you add a packaging system, that will do you just fine.Mine was a lot like yours, just with a packageing system. Yours was a lot like mine because it was yours...I stole it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.