sl@0: @rem sl@0: @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: @rem All rights reserved. sl@0: @rem This component and the accompanying materials are made available sl@0: @rem under the terms of "Eclipse Public License v1.0" sl@0: @rem which accompanies this distribution, and is available sl@0: @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: @rem sl@0: @rem Initial Contributors: sl@0: @rem Nokia Corporation - initial contribution. sl@0: @rem sl@0: @rem Contributors: sl@0: @rem sl@0: @rem Description: sl@0: @rem sl@0: @echo off sl@0: set _main_ver=00490 sl@0: set _main_ver_sub=114869 sl@0: set _ver=151 sl@0: set _prefix=GT sl@0: set _prefixN=%_prefix%_%_main_ver% sl@0: set ZipPrefix=%_prefix% sl@0: set _ve32toolp=113 sl@0: set _ve32tools=123 sl@0: set _ve32utl=035 sl@0: set _vgditools=052 sl@0: set _vsdk=014 sl@0: sl@0: set _ve32=189 sl@0: set _vf32=148 sl@0: set _vstore=062 sl@0: set _vgdi=071 sl@0: set _vfntstore=060 sl@0: set _vfbserv=093 sl@0: set _vbitgdi=097 sl@0: if "%1"=="?" goto help sl@0: if "%1"=="" goto help sl@0: if "%EPOCROOT%"=="" echo error: Variable Epocroot must be defined sl@0: if "%EPOCROOT%"=="" goto help sl@0: goto %1 sl@0: goto help sl@0: sl@0: :rombld sl@0: rombuild -slog %2.oby sl@0: goto end sl@0: sl@0: :bldass sl@0: copy ..\rom\wserv.oby %EPOCROOT%epoc32\rom\include\WSERV.OBY sl@0: copy ..\rom\wservtest.iby %EPOCROOT%epoc32\rom\include\WSERVTest.IBY sl@0: cd %EPOCROOT%epoc32\rom sl@0: call tools\buildrom assabet wserv sl@0: copy ab_001.engbuild.img h:\sys$rom.bin sl@0: goto endgroup sl@0: sl@0: :bldint sl@0: call prj group sl@0: copy ..\rom\wserv.oby %EPOCROOT%epoc32\rom\include\WSERV.OBY sl@0: copy ..\rom\wservtest.iby %EPOCROOT%epoc32\rom\include\WSERVTest.IBY sl@0: cd %EPOCROOT%epoc32\rom sl@0: call tools\buildrom int wserv sl@0: copy v1_001.engbuild.img def.img sl@0: dir *.img sl@0: goto end sl@0: sl@0: sl@0: :imgerror1 sl@0: echo Invalid target machine specified sl@0: goto end sl@0: :imgerror2 sl@0: echo invalid build specified sl@0: goto end sl@0: sl@0: :ver sl@0: echo Current Mainline version number %_main_ver% @%_main_ver_sub% sl@0: echo Current release version number %_ver% sl@0: echo. sl@0: grep VersionNumber= ..\SERVER\w32cmd.h sl@0: echo. sl@0: grep \? ..\group\rel.txt sl@0: goto end sl@0: sl@0: rem ================ Getting source and build files ==================== sl@0: sl@0: :getzip sl@0: echo About to delete old zips sl@0: pause sl@0: del \%_prefix%*.log sl@0: del \%_prefix%*.zip sl@0: rem del \refui_wins.zip sl@0: :getzipn sl@0: set _dirname= sl@0: if "%2"=="P" set _dirname=_PENDING_RELEASE sl@0: if "%2"=="p" set _dirname=_PENDING_RELEASE sl@0: if "%2"=="R" set _dirname=_roms_patched sl@0: if "%2"=="r" set _dirname=_roms_patched sl@0: rem cd r:\mainline\%_main_ver%%_dirname% sl@0: cd r:\mainline sl@0: if not exist r:%_main_ver%%_dirname%\zips\nul goto tryname1 sl@0: cd r:%_main_ver%%_dirname% sl@0: goto foundname sl@0: :tryname1 sl@0: set _dirname=_PENDING_RELEASE sl@0: if not exist r:%_main_ver%%_dirname%\zips\nul goto tryname2 sl@0: cd r:%_main_ver%%_dirname% sl@0: goto foundname sl@0: :tryname2 sl@0: set _dirname= sl@0: if not exist r:%_main_ver%%_dirname%\zips\nul goto tryname3 sl@0: cd r:%_main_ver%%_dirname% sl@0: goto foundname sl@0: :tryname3 sl@0: echo Cannot find directory for build %_main_ver% sl@0: goto end sl@0: :foundname sl@0: cd r:zips sl@0: echo About to get zip files for build %_main_ver% sl@0: pause sl@0: echo Copying Build Log %2 sl@0: copy R:..\logs\%_prefixN%_preamble.log + R:..\logs\%_prefixN%_build.log \GT_%_main_ver%_Build.LOG sl@0: echo Copying %_prefix%_arm4.zip sl@0: copy r:%_prefix%_arm4.zip \ sl@0: echo Copying %_prefix%_armi.zip sl@0: copy r:%_prefix%_armi.zip \ sl@0: echo Copying %_prefix%_thumb.zip sl@0: copy r:%_prefix%_thumb.zip \ sl@0: rem echo Copying RefUI_wins.zip sl@0: rem copy r:RefUI_wins.zip \ sl@0: rem goto endgroup sl@0: echo Copying %_prefix%_libs.zip sl@0: copy r:%_prefix%_libs.zip \ sl@0: echo Copying %_prefix%_wins.zip sl@0: copy r:%_prefix%_wins.zip \ sl@0: rem echo Copying RefUI_wins.zip sl@0: rem copy RefUI_wins.zip H:\ sl@0: goto end sl@0: sl@0: :unzip sl@0: :getline sl@0: if exist \%_prefix%_libs.zip goto dogetline sl@0: echo No baseline present! sl@0: goto end sl@0: :dogetline sl@0: echo About to get SDK sl@0: set file=%_prefix%_libs sl@0: call prj group sl@0: call mnt getsdk sl@0: rem set file=RefUI_wins sl@0: cd \ sl@0: unzip %file% epoc32\gcc\* sl@0: rem unzip -C baseline epoc32\include\* sl@0: :getline1 sl@0: if "%file%"=="" set file=%_prefix%_libs sl@0: cd \ sl@0: unzip -C %file% epoc32\rom\* sl@0: unzip -C %file% epoc32\tools\* sl@0: :getcomps sl@0: cd \ sl@0: rem set _build=winc sl@0: call gr %_build% e32utils e32 hal f32 loce32 stdlib store bafl dbms sl@0: call gr %_build% series5mx1 assabetb integratorap bootstrap c32 esock commdb configdb debugger_stub sl@0: call gr %_build% tcpip dial charconv sysagent gdi fntstore fbserv bitgdi screendriver sl@0: if not exist %EPOCROOT%epoc32\wins\nul md %EPOCROOT%epoc32\WINS sl@0: if not exist %EPOCROOT%epoc32\wins\c\nul md %EPOCROOT%epoc32\wins\C sl@0: set file= sl@0: goto endgroup sl@0: sl@0: :getwline sl@0: call gr %_build% wserv sl@0: goto end sl@0: sl@0: :integ sl@0: cd \wserv_dev sl@0: p4 integ -b DougF_Dev_Main -s ... sl@0: cd \wserv sl@0: p4 revert ...\distribution.policy sl@0: p4 revert ...\*.uid.cpp sl@0: goto endgroup sl@0: sl@0: :oldmakework sl@0: if not exist %EPOCROOT%epoc32\nul md %EPOCROOT%epoc32 sl@0: if not exist %EPOCROOT%epoc32\build\nul md %EPOCROOT%epoc32\build sl@0: if not exist %EPOCROOT%epoc32\build\wserv\nul md %EPOCROOT%epoc32\build\wserv sl@0: if not exist %EPOCROOT%epoc32\build\wserv\wins\nul md %EPOCROOT%epoc32\build\wserv\wins sl@0: if not exist %EPOCROOT%epoc32\build\wserv\wins\udeb\nul md %EPOCROOT%epoc32\build\wserv\wins\udeb sl@0: if not exist %EPOCROOT%epoc32\build\wserv\wins\urel\nul md %EPOCROOT%epoc32\build\wserv\wins\urel sl@0: if not exist %EPOCROOT%epoc32\build\wserv\winsd\nul md %EPOCROOT%epoc32\build\wserv\winsd sl@0: if not exist %EPOCROOT%epoc32\build\wserv\winsd\udeb\nul md %EPOCROOT%epoc32\build\wserv\winsd\udeb sl@0: if not exist %EPOCROOT%epoc32\build\wserv\winsd\urel\nul md %EPOCROOT%epoc32\build\wserv\winsd\urel sl@0: if not exist %EPOCROOT%epoc32\build\wserv\marm\nul md %EPOCROOT%epoc32\build\wserv\marm sl@0: if not exist %EPOCROOT%epoc32\build\wserv\marm\udeb\nul md %EPOCROOT%epoc32\build\wserv\marm\udeb sl@0: if not exist %EPOCROOT%epoc32\build\wserv\marm\urel\nul md %EPOCROOT%epoc32\build\wserv\marm\urel sl@0: if not exist %EPOCROOT%epoc32\build\wserv\marmd\nul md %EPOCROOT%epoc32\build\wserv\marmd sl@0: if not exist %EPOCROOT%epoc32\build\wserv\marmd\udeb\nul md %EPOCROOT%epoc32\build\wserv\marmd\udeb sl@0: if not exist %EPOCROOT%epoc32\build\wserv\marmd\urel\nul md %EPOCROOT%epoc32\build\wserv\marmd\urel sl@0: goto end sl@0: sl@0: :makework sl@0: :makeworkall sl@0: call prj bwins sl@0: call makmake ..\group\WSERV wins sl@0: nmake -f wserv.wins makework sl@0: call makmake ..\group\W32 wins sl@0: nmake -f w32.wins makework sl@0: call makmake ..\group\WSEXE wins sl@0: nmake -f wsexe.wins makework sl@0: call makmake ..\group\DEBLOG wins sl@0: nmake -f deblog.wins makework sl@0: call makmake ..\group\DEBLOGFL wins sl@0: nmake -f deblogfl.wins makework sl@0: call makmake ..\group\DEBLOGWN wins sl@0: nmake -f deblogwn.wins makework sl@0: call makmake ..\group\DEBLOGSR wins sl@0: nmake -f deblogsr.wins makework sl@0: call makmake ..\group\TLIB wins sl@0: nmake -f tlib.wins makework sl@0: call makmake ..\group\SHELL wins sl@0: nmake -f shell.wins makework sl@0: call makmake ..\group\CONNECT wins sl@0: nmake -f connect.wins makework sl@0: call makmake ..\group\HANDANIM wins sl@0: nmake -f handanim.wins makework sl@0: call makmake ..\group\AUTO wins sl@0: nmake -f auto.wins makework sl@0: call makmake ..\group\AUTODLL wins sl@0: nmake -f autodll.wins makework sl@0: call makmake ..\group\TMAN wins sl@0: nmake -f tman.wins makework sl@0: if !%1==!makework goto end sl@0: :makeworkother sl@0: call makmake ..\group\TTIME wins sl@0: nmake -f ttime.wins makework sl@0: call makmake ..\group\ANIM wins sl@0: nmake -f anim.wins makework sl@0: call makmake ..\group\ANIMDLL wins sl@0: nmake -f animdll.wins makework sl@0: goto end sl@0: sl@0: :getbld sl@0: :getcomp sl@0: :getcomps sl@0: if not exist %EPOCROOT%epoc32\nul md %EPOCROOT%epoc32 sl@0: if not exist %EPOCROOT%epoc32\tools md %EPOCROOT%epoc32\tools sl@0: if not exist %EPOCROOT%epoc32\data md %EPOCROOT%epoc32\data sl@0: if not exist %EPOCROOT%epoc32\wins md %EPOCROOT%epoc32\wins sl@0: if not exist %EPOCROOT%epoc32\wins\c md %EPOCROOT%epoc32\wins\c sl@0: if not exist %EPOCROOT%epoc32\wins\c\data\nul md %EPOCROOT%epoc32\wins\c\data sl@0: if not exist %EPOCROOT%epoc32\include\nul md %EPOCROOT%epoc32\include sl@0: if not exist %EPOCROOT%epoc32\release\nul md %EPOCROOT%epoc32\release sl@0: if not exist %EPOCROOT%epoc32\release\wins\nul md %EPOCROOT%epoc32\release\wins sl@0: if not exist %EPOCROOT%epoc32\release\wins\udeb\nul md %EPOCROOT%epoc32\release\wins\udeb sl@0: if not exist %EPOCROOT%epoc32\release\wins\urel\nul md %EPOCROOT%epoc32\release\wins\urel sl@0: if not exist %EPOCROOT%epoc32\release\marm\nul md %EPOCROOT%epoc32\release\marm sl@0: if not exist %EPOCROOT%epoc32\release\marm\udeb\nul md %EPOCROOT%epoc32\release\marm\udeb sl@0: if not exist %EPOCROOT%epoc32\release\marm\urel\nul md %EPOCROOT%epoc32\release\marm\urel sl@0: goto end sl@0: sl@0: :getsdk sl@0: set _group=sdk sl@0: set _grver=%_vsdk% sl@0: if not exist %EPOCROOT%epoc32\data\nul md %EPOCROOT%epoc32\DATA sl@0: cd %EPOCROOT%epoc32\data sl@0: set _drv=C: sl@0: call ..\group\getrel %_group% sdmodels %_grver% sl@0: set _drv= sl@0: goto endgroup sl@0: sl@0: :getsrc sl@0: setlocal sl@0: set p4client=Lon-DougF_Main_Source sl@0: p4 sync %3 //EPOC/Main/generic/.../%2/...@%_main_ver_sub% sl@0: endlocal sl@0: goto end sl@0: sl@0: :getsrctip sl@0: setlocal sl@0: set p4client=Lon-DougF_Main_Source sl@0: p4 sync %3 //EPOC/Main/generic/%2/... sl@0: endlocal sl@0: goto end sl@0: sl@0: sl@0: rem ===============Comparing Freeze Files=================== sl@0: sl@0: :def sl@0: REM b %EPOCROOT%epoc32\build\wserv\winsd\deb\tanimd.def \wserv\bwins\wsanim.def sl@0: copy %EPOCROOT%epoc32\build\wserv\winsd\deb\tanimd.def \wserv\bwins sl@0: goto end sl@0: sl@0: :difdefs sl@0: if exist ..\ws32.lis del ..\ws32.lis sl@0: defmake %EPOCROOT%epoc32\release\wins\rel\ws32.dll %EPOCROOT%epoc32\release\wins\rel\ws32.def sl@0: vdiff ..\bwins\ws32.def %EPOCROOT%epoc32\release\wins\rel\ws32.def > ..\ws32.lis sl@0: defmake %EPOCROOT%epoc32\release\wins\deb\ws32.dll %EPOCROOT%epoc32\release\wins\deb\ws32.def sl@0: vdiff ..\bwins\ws32d.def %EPOCROOT%epoc32\release\wins\deb\ws32.def >> ..\ws32.lis sl@0: goto end sl@0: sl@0: :bdefs sl@0: defmake %EPOCROOT%epoc32\release\wins\rel\ws32.dll %EPOCROOT%epoc32\release\wins\rel\ws32.def sl@0: b ..\bwins\ws32.def %EPOCROOT%epoc32\release\wins\rel\ws32.def sl@0: goto end sl@0: :bdefsm sl@0: dlltool --output-def ws32.def %EPOCROOT%epoc32\build\wserv\marmd\rel\ws32.in sl@0: b ..\bmarm\ws32.frz %EPOCROOT%epoc32\release\marm\rel\ws32.def sl@0: goto end sl@0: sl@0: sl@0: rem ================ Run test code =============== sl@0: sl@0: :run sl@0: :runudeb sl@0: set _rdir_=udeb sl@0: call ..\group\mnt dorun %2 %3 sl@0: goto end sl@0: sl@0: :runurel sl@0: set _rdir_=urel sl@0: call ..\group\mnt dorun %2 %3 sl@0: goto end sl@0: sl@0: :dorun sl@0: call prj test sl@0: call ..\group\mnt xrun epoc %2 %3 sl@0: goto end sl@0: sl@0: :xrun sl@0: start %EPOCROOT%epoc32\release\wins\%_rdir_%\%2 sl@0: set _rdir_= sl@0: goto end sl@0: sl@0: rem ================ Quick backup to zipping to the U drive sl@0: sl@0: :backup sl@0: if exist u:\netx.bug goto do_it sl@0: echo Death! Death! no network to back up to sl@0: goto end sl@0: :do_it sl@0: call prj group sl@0: if %2?==? goto update sl@0: call kill u:\wserv\bak.zip sl@0: pkzip u:\wserv\bak.zip \wserv\*.* -wHS -r -p -x@exclude.prj sl@0: attrib \wserv\*.* -A /S sl@0: goto end sl@0: :update sl@0: pkzip u:\wserv\bak.zip \wserv\*.* -i -wHS -r -p -x@exclude.prj sl@0: goto end sl@0: sl@0: rem ================ Install ============== sl@0: sl@0: :install sl@0: echo Replacing WSINI.INI files with test versions. sl@0: call :doinstall wins udeb wservu sl@0: call :doinstall wins urel wservu sl@0: call :doinstall winscw udeb wservu_multiscreen sl@0: call :doinstall winscw urel wservu_multiscreen sl@0: sl@0: rem If EKA1 then finish because EKA1 does not support multiscreen. sl@0: if exist %EPOCROOT%epoc32\release\wins\udeb\auto.dll goto :EOF sl@0: if exist %EPOCROOT%epoc32\release\wins\urel\auto.dll goto :EOF sl@0: sl@0: echo Backing up EPOC.INI. sl@0: if not exist %EPOCROOT%epoc32\data\epoc.bak copy %EPOCROOT%epoc32\data\epoc.ini %EPOCROOT%epoc32\data\epoc.bak >nul sl@0: sl@0: rem add line to epoc.ini so that the system starter will start the emulator in wshell mode sl@0: echo. >> %EPOCROOT%epoc32\data\epoc.ini sl@0: echo StartupMode 7 >> %EPOCROOT%epoc32\data\epoc.ini sl@0: sl@0: echo Editing EPOC.INI to use multiscreen. sl@0: echo _NewScreen_ >> %EPOCROOT%epoc32\data\epoc.ini sl@0: echo ScreenWidth 640 >> %EPOCROOT%epoc32\data\epoc.ini sl@0: echo ScreenHeight 240 >> %EPOCROOT%epoc32\data\epoc.ini sl@0: goto :EOF sl@0: sl@0: sl@0: :doinstall sl@0: rem Back up WSINI.INI sl@0: if not exist %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.bak if exist %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.ini copy %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.ini %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.bak >nul sl@0: if not exist %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.bak if exist %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.ini copy %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.ini %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.bak >nul sl@0: sl@0: rem Back up ECONS.DLL sl@0: if exist %EPOCROOT%epoc32\release\%1\%2\econs.dll xcopy /r /i /y %EPOCROOT%epoc32\release\%1\%2\econs.dll %EPOCROOT%epoc32\release\%1\%2\econs-temp.dll sl@0: sl@0: rem Rename WSECONS.DLL to ECONS.DLL sl@0: if exist %EPOCROOT%epoc32\release\%1\%2\wsecons.dll xcopy /r /i /y %EPOCROOT%epoc32\release\%1\%2\wsecons.dll %EPOCROOT%epoc32\release\%1\%2\econs.dll sl@0: sl@0: if "%4"=="nonnga" goto :dononngainstall sl@0: sl@0: rem Replace WSINI.INI with test version sl@0: if exist %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.ini xcopy /r /y %~dp0%3.ini %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.ini >nul sl@0: if exist %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.ini xcopy /r /y %~dp0%3.ini %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.ini >nul sl@0: goto :EOF sl@0: sl@0: rem ================ Uninstall ============== sl@0: sl@0: :uninstall sl@0: echo Restoring WSINI.INI files. sl@0: call :douninstall wins udeb sl@0: call :douninstall wins urel sl@0: call :douninstall winscw udeb sl@0: call :douninstall winscw urel sl@0: sl@0: rem If EKA1 then finish because EKA1 does not support multiscreen. sl@0: if exist %EPOCROOT%epoc32\release\wins\udeb\auto.dll goto :EOF sl@0: if exist %EPOCROOT%epoc32\release\wins\urel\auto.dll goto :EOF sl@0: sl@0: echo Restoring EPOC.INI. sl@0: if exist %EPOCROOT%epoc32\data\epoc.bak xcopy /r /y %EPOCROOT%epoc32\data\epoc.bak %EPOCROOT%epoc32\data\epoc.ini >nul sl@0: goto :EOF sl@0: sl@0: echo Restoring backedup ECONS.DLL sl@0: if exist %EPOCROOT%epoc32\release\%1\%2\econs-temp.dll xcopy /r /i /y %EPOCROOT%epoc32\release\%1\%2\econs-temp.dll %EPOCROOT%epoc32\release\%1\%2\econs.dll sl@0: goto :EOF sl@0: sl@0: :douninstall sl@0: rem Restore WSINI.INI sl@0: if exist %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.bak xcopy /r /y %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.bak %EPOCROOT%epoc32\release\%1\%2\z\system\data\wsini.ini >nul sl@0: if exist %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.bak xcopy /r /y %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.bak %EPOCROOT%epoc32\release\%1\%2\z\resource\data\wsini.ini >nul sl@0: goto :EOF sl@0: sl@0: rem ================================================= sl@0: sl@0: :absolutefadingtest sl@0: call mnt install sl@0: copy ..\group\absolutefading.ini %EPOCROOT%epoc32\release\wins\udeb\z\private\10003b20\wsini.ini >NUL sl@0: copy \wserv\group\absolutefading.ini %EPOCROOT%epoc32\release\wins\urel\z\system\data\wsini.ini >NUL sl@0: goto end sl@0: sl@0: rem ================ Clean up temp files ============== sl@0: sl@0: :cleanup sl@0: xdel ..\*.err /ns sl@0: xdel ..\*.lis /ns sl@0: xdel ..\*.log /ns sl@0: goto end sl@0: sl@0: rem ================ Check for files not in li.prj ============== sl@0: sl@0: :check sl@0: @perl -w c:\bin\CHECKADD.PL wserv %2 %3 %4 %5 %6 %7 %8 %9 sl@0: goto end sl@0: sl@0: sl@0: rem ================ SWAP! ================= sl@0: sl@0: :bsw sl@0: :bswap sl@0: :swb sl@0: :swapb sl@0: if not exist %EPOCROOT%epoc32\release\wins\udeb\bak\null goto dobackswap sl@0: echo Already done!!! sl@0: goto end sl@0: :dobackswap sl@0: cd %EPOCROOT%epoc32\release\wins sl@0: md udeb\BAK sl@0: md urel\BAK sl@0: rem cd ..\marm sl@0: rem md udeb\BAK sl@0: rem md urel\BAK sl@0: cd %EPOCROOT%epoc32\release\wins sl@0: copy udeb\ws*.* udeb\bak sl@0: copy urel\ws*.* urel\bak sl@0: rem cd ..\marm sl@0: rem copy udeb\ws*.* udeb\bak sl@0: rem copy urel\ws*.* urel\bak sl@0: goto endgroup sl@0: sl@0: :swap sl@0: if exist %EPOCROOT%epoc32\release\marm\urel\bak\wserv.exe goto doswap sl@0: echo Not done a backup!! sl@0: goto end sl@0: :doswap sl@0: cd %EPOCROOT%epoc32\release\wins sl@0: xcopy urel\bak\*.* udeb sl@0: xcopy udeb\bak\*.* urel sl@0: cd ..\marm sl@0: xcopy urel\bak\*.* udeb sl@0: xcopy udeb\bak\*.* urel sl@0: goto endgroup sl@0: sl@0: :swapres sl@0: :unswap sl@0: :swapr sl@0: if exist %EPOCROOT%epoc32\release\marm\urel\bak\wserv.exe goto doswaprestore sl@0: echo Not done a backup!! sl@0: goto end sl@0: :doswaprestore sl@0: cd %EPOCROOT%epoc32\release\wins sl@0: xcopy udeb\bak\*.* udeb sl@0: xcopy urel\bak\*.* urel sl@0: cd ..\marm sl@0: xcopy udeb\bak\*.* udeb sl@0: xcopy urel\bak\*.* urel sl@0: goto endgroup sl@0: sl@0: :reverse sl@0: if exist %EPOCROOT%epoc32\release\wins\urel\bak\wserv.dll goto dorev sl@0: echo Not done a backup!! sl@0: goto end sl@0: :dorev sl@0: cd %EPOCROOT%epoc32\release\wins sl@0: if not exist %EPOCROOT%epoc32\release\wins\urel\bak1\wserv.dll goto dorev2 sl@0: erase /S /Q udeb\bak1 sl@0: rmdir udeb\bak1 sl@0: erase /S /Q urel\bak1 sl@0: rmdir urel\bak1 sl@0: :dorev2 sl@0: rename udeb\bak Bak1 sl@0: rename urel\bak Bak1 sl@0: call mnt bsw sl@0: cd %EPOCROOT%epoc32\release\wins sl@0: xcopy udeb\bak1\*.* udeb sl@0: xcopy urel\bak1\*.* urel sl@0: goto endgroup sl@0: erase /S /Q udeb\bak1 sl@0: rmdir udeb\bak1 sl@0: erase /S /Q urel\bak1 sl@0: rmdir urel\bak1 sl@0: goto endgroup sl@0: sl@0: :export sl@0: copy ..\inc\w32*.h %EPOCROOT%epoc32\include sl@0: copy ..\bwins\wsanimu.def %EPOCROOT%epoc32\release\wins sl@0: copy ..\bmarm\wsanimu.def %EPOCROOT%epoc32\release\marm sl@0: goto end sl@0: sl@0: :epoc32a sl@0: xcopy /s /v %EPOCROOT%epoc32a\build\wserv %EPOCROOT%epoc32\build\WSERV sl@0: xcopy /s /v %EPOCROOT%epoc32a\make\wserv %EPOCROOT%epoc32\make\WSERV sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\arm4\udeb\ws*.* %EPOCROOT%epoc32\release\arm4\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\arm4\urel\ws*.* %EPOCROOT%epoc32\release\arm4\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\udeb\ws*.* %EPOCROOT%epoc32\release\armi\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\ws*.* %EPOCROOT%epoc32\release\armi\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\ws*.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\ws*.* %EPOCROOT%epoc32\release\thumb\urel sl@0: sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\auto.* %EPOCROOT%epoc32\release\armi\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\conn.* %EPOCROOT%epoc32\release\armi\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\dlog*.* %EPOCROOT%epoc32\release\armi\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\shell.* %EPOCROOT%epoc32\release\armi\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\tlib.* %EPOCROOT%epoc32\release\armi\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\tman.* %EPOCROOT%epoc32\release\armi\urel sl@0: sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\anidll.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\auto*.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\conn.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\dlog*.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\econs.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\jotanim.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\mbmanim.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\shell.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\tlib.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\tman.* %EPOCROOT%epoc32\release\thumb\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\anidll.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\auto*.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\conn.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\dlog*.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\econs.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\jotanim.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\mbmanim.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\shell.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\tlib.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\tman.* %EPOCROOT%epoc32\release\thumb\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\anidll.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\auto*.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\conn.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\dlog*.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\econs.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\epoc.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\mbmanim.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\shell.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\tlib.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\udeb\tman.* %EPOCROOT%epoc32\release\wins\udeb sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\anidll.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\auto*.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\conn.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\dlog*.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\econs.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\epoc.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\jotanim.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\mbmanim.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\shell.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\tlib.* %EPOCROOT%epoc32\release\wins\urel sl@0: xcopy /s /v %EPOCROOT%epoc32a\release\wins\urel\tman.* %EPOCROOT%epoc32\release\wins\urel sl@0: goto end sl@0: sl@0: :depoc32a sl@0: del /f /s /q %EPOCROOT%epoc32a\build\wserv sl@0: del /f /s /q %EPOCROOT%epoc32a\make\wserv sl@0: del /f /q %EPOCROOT%epoc32a\release\arm4\udeb\ws*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\arm4\urel\ws*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\udeb\ws*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\urel\ws*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\ws*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\ws*.* sl@0: sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\urel\auto.* sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\urel\conn.* sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\urel\dlog*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\urel\shell.* sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\urel\tlib.* sl@0: del /f /q %EPOCROOT%epoc32a\release\armi\urel\tman.* sl@0: sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\anidll.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\auto*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\conn.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\dlog*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\econs.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\jotanim.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\mbmanim.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\shell.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\tlib.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\udeb\tman.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\anidll.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\auto*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\conn.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\dlog*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\econs.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\jotanim.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\mbmanim.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\shell.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\tlib.* sl@0: del /f /q %EPOCROOT%epoc32a\release\thumb\urel\tman.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\anidll.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\auto*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\conn.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\dlog*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\econs.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\epoc.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\mbmanim.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\shell.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\tlib.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\udeb\tman.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\anidll.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\auto*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\conn.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\dlog*.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\econs.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\epoc.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\jotanim.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\mbmanim.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\shell.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\tlib.* sl@0: del /f /q %EPOCROOT%epoc32a\release\wins\urel\tman.* sl@0: goto end sl@0: sl@0: sl@0: rem ================ HELP! ================= sl@0: sl@0: :help sl@0: echo Parameters are: sl@0: echo BACKUP to backup to U:\wserv sl@0: echo GETZIP to get the zip files for the current baseline sl@0: echo GETLINE to extract all the components we depend on sl@0: echo GETSRC {comp} to get the source of another component sl@0: rem echo ----------------------------------------------------------------------- sl@0: echo DELBLD to delete all work files for the current build sl@0: echo CHECK to check that all the files in the group are in a .PRJ file sl@0: echo ARMUDEB to build unicode debug code for ARM debug sl@0: goto end sl@0: sl@0: :endgroup sl@0: call cont wserv group sl@0: :end sl@0: set _main_ver= sl@0: set _main_ver_sub= sl@0: set _prefix= sl@0: set _prefixN= sl@0: set _ver= sl@0: set _ve32tools= sl@0: set _ve32toolp= sl@0: set _ve32utl= sl@0: set _vgditools= sl@0: set _ve32= sl@0: set _vf32= sl@0: set _vgdi= sl@0: set _vfntstore= sl@0: set _vfbserv= sl@0: set _vbitgdi= sl@0: set _vstore= sl@0: set _vsdk= sl@0: set _par1= sl@0: set _par2=