Jump to content

Your build script


nilson

Recommended Posts

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\

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :ph34r:
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...