os/graphics/windowing/windowserver/group/MNT.CMD
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 @rem
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 @rem All rights reserved.
     4 @rem This component and the accompanying materials are made available
     5 @rem under the terms of "Eclipse Public License v1.0"
     6 @rem which accompanies this distribution, and is available
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 @rem
     9 @rem Initial Contributors:
    10 @rem Nokia Corporation - initial contribution.
    11 @rem
    12 @rem Contributors:
    13 @rem
    14 @rem Description: 
    15 @rem
    16 @echo off
    17 set _main_ver=00490
    18 set _main_ver_sub=114869
    19 set _ver=151
    20 set _prefix=GT
    21 set _prefixN=%_prefix%_%_main_ver%
    22 set ZipPrefix=%_prefix%
    23 set _ve32toolp=113
    24 set _ve32tools=123
    25 set _ve32utl=035
    26 set _vgditools=052
    27 set _vsdk=014
    28 
    29 set _ve32=189
    30 set _vf32=148
    31 set _vstore=062
    32 set _vgdi=071
    33 set _vfntstore=060
    34 set _vfbserv=093
    35 set _vbitgdi=097
    36 if "%1"=="?" goto help
    37 if "%1"=="" goto help
    38 if "%EPOCROOT%"=="" echo error: Variable Epocroot must be defined
    39 if "%EPOCROOT%"=="" goto help
    40 goto %1
    41 goto help
    42 
    43 :rombld
    44 rombuild -slog %2.oby
    45 goto end
    46 
    47 :bldass
    48 copy ..\rom\wserv.oby %EPOCROOT%epoc32\rom\include\WSERV.OBY
    49 copy ..\rom\wservtest.iby %EPOCROOT%epoc32\rom\include\WSERVTest.IBY
    50 cd %EPOCROOT%epoc32\rom
    51 call tools\buildrom assabet wserv
    52 copy ab_001.engbuild.img h:\sys$rom.bin
    53 goto endgroup
    54 
    55 :bldint
    56 call prj group
    57 copy ..\rom\wserv.oby %EPOCROOT%epoc32\rom\include\WSERV.OBY
    58 copy ..\rom\wservtest.iby %EPOCROOT%epoc32\rom\include\WSERVTest.IBY
    59 cd %EPOCROOT%epoc32\rom
    60 call tools\buildrom int wserv
    61 copy v1_001.engbuild.img def.img
    62 dir *.img
    63 goto end
    64 
    65 
    66 :imgerror1
    67 echo Invalid target machine specified
    68 goto end
    69 :imgerror2
    70 echo invalid build specified
    71 goto end
    72 
    73 :ver
    74 echo Current Mainline version number %_main_ver% @%_main_ver_sub%
    75 echo Current release version number %_ver%
    76 echo.
    77 grep VersionNumber= ..\SERVER\w32cmd.h
    78 echo.
    79 grep \? ..\group\rel.txt
    80 goto end
    81 
    82 rem ================ Getting source and build files ====================
    83 
    84 :getzip
    85 echo About to delete old zips
    86 pause
    87 del \%_prefix%*.log
    88 del \%_prefix%*.zip
    89 rem del \refui_wins.zip
    90 :getzipn
    91 set _dirname=
    92 if "%2"=="P" set _dirname=_PENDING_RELEASE
    93 if "%2"=="p" set _dirname=_PENDING_RELEASE
    94 if "%2"=="R" set _dirname=_roms_patched
    95 if "%2"=="r" set _dirname=_roms_patched
    96 rem cd r:\mainline\%_main_ver%%_dirname%
    97 cd r:\mainline
    98 if not exist r:%_main_ver%%_dirname%\zips\nul goto tryname1
    99 cd r:%_main_ver%%_dirname%
   100 goto foundname
   101 :tryname1
   102 set _dirname=_PENDING_RELEASE
   103 if not exist r:%_main_ver%%_dirname%\zips\nul goto tryname2
   104 cd r:%_main_ver%%_dirname%
   105 goto foundname
   106 :tryname2
   107 set _dirname=
   108 if not exist r:%_main_ver%%_dirname%\zips\nul goto tryname3
   109 cd r:%_main_ver%%_dirname%
   110 goto foundname
   111 :tryname3
   112 echo Cannot find directory for build %_main_ver%
   113 goto end
   114 :foundname
   115 cd r:zips
   116 echo About to get zip files for build %_main_ver%
   117 pause
   118 echo Copying Build Log %2
   119 copy R:..\logs\%_prefixN%_preamble.log + R:..\logs\%_prefixN%_build.log \GT_%_main_ver%_Build.LOG
   120 echo Copying %_prefix%_arm4.zip
   121 copy r:%_prefix%_arm4.zip \
   122 echo Copying %_prefix%_armi.zip
   123 copy r:%_prefix%_armi.zip \
   124 echo Copying %_prefix%_thumb.zip
   125 copy r:%_prefix%_thumb.zip \
   126 rem echo Copying RefUI_wins.zip
   127 rem copy r:RefUI_wins.zip \
   128 rem goto endgroup
   129 echo Copying %_prefix%_libs.zip
   130 copy r:%_prefix%_libs.zip \
   131 echo Copying %_prefix%_wins.zip
   132 copy r:%_prefix%_wins.zip \
   133 rem echo Copying RefUI_wins.zip
   134 rem copy RefUI_wins.zip H:\
   135 goto end
   136 
   137 :unzip
   138 :getline
   139 if exist \%_prefix%_libs.zip goto dogetline
   140 echo No baseline present!
   141 goto end
   142 :dogetline
   143 echo About to get SDK
   144 set file=%_prefix%_libs
   145 call prj group
   146 call mnt getsdk
   147 rem set file=RefUI_wins
   148 cd \
   149 unzip %file% epoc32\gcc\*
   150 rem unzip -C baseline epoc32\include\*
   151 :getline1
   152 if "%file%"=="" set file=%_prefix%_libs
   153 cd \
   154 unzip -C %file% epoc32\rom\*
   155 unzip -C %file% epoc32\tools\*
   156 :getcomps
   157 cd \
   158 rem set _build=winc
   159 call gr %_build% e32utils e32 hal f32 loce32 stdlib store bafl dbms
   160 call gr %_build% series5mx1 assabetb integratorap bootstrap c32 esock commdb configdb debugger_stub
   161 call gr %_build% tcpip dial charconv sysagent gdi fntstore fbserv bitgdi screendriver
   162 if not exist  %EPOCROOT%epoc32\wins\nul md  %EPOCROOT%epoc32\WINS
   163 if not exist  %EPOCROOT%epoc32\wins\c\nul md  %EPOCROOT%epoc32\wins\C
   164 set file=
   165 goto endgroup
   166 
   167 :getwline
   168 call gr %_build% wserv
   169 goto end
   170 
   171 :integ
   172 cd \wserv_dev
   173 p4 integ -b DougF_Dev_Main -s ...
   174 cd \wserv
   175 p4 revert ...\distribution.policy
   176 p4 revert ...\*.uid.cpp
   177 goto endgroup
   178 
   179 :oldmakework
   180 if not exist  %EPOCROOT%epoc32\nul md  %EPOCROOT%epoc32
   181 if not exist  %EPOCROOT%epoc32\build\nul md  %EPOCROOT%epoc32\build
   182 if not exist  %EPOCROOT%epoc32\build\wserv\nul md  %EPOCROOT%epoc32\build\wserv
   183 if not exist  %EPOCROOT%epoc32\build\wserv\wins\nul md  %EPOCROOT%epoc32\build\wserv\wins
   184 if not exist  %EPOCROOT%epoc32\build\wserv\wins\udeb\nul md  %EPOCROOT%epoc32\build\wserv\wins\udeb
   185 if not exist  %EPOCROOT%epoc32\build\wserv\wins\urel\nul md  %EPOCROOT%epoc32\build\wserv\wins\urel
   186 if not exist  %EPOCROOT%epoc32\build\wserv\winsd\nul md  %EPOCROOT%epoc32\build\wserv\winsd
   187 if not exist  %EPOCROOT%epoc32\build\wserv\winsd\udeb\nul md  %EPOCROOT%epoc32\build\wserv\winsd\udeb
   188 if not exist  %EPOCROOT%epoc32\build\wserv\winsd\urel\nul md  %EPOCROOT%epoc32\build\wserv\winsd\urel
   189 if not exist  %EPOCROOT%epoc32\build\wserv\marm\nul md  %EPOCROOT%epoc32\build\wserv\marm
   190 if not exist  %EPOCROOT%epoc32\build\wserv\marm\udeb\nul md  %EPOCROOT%epoc32\build\wserv\marm\udeb
   191 if not exist  %EPOCROOT%epoc32\build\wserv\marm\urel\nul md  %EPOCROOT%epoc32\build\wserv\marm\urel
   192 if not exist  %EPOCROOT%epoc32\build\wserv\marmd\nul md  %EPOCROOT%epoc32\build\wserv\marmd
   193 if not exist  %EPOCROOT%epoc32\build\wserv\marmd\udeb\nul md  %EPOCROOT%epoc32\build\wserv\marmd\udeb
   194 if not exist  %EPOCROOT%epoc32\build\wserv\marmd\urel\nul md  %EPOCROOT%epoc32\build\wserv\marmd\urel
   195 goto end
   196 
   197 :makework
   198 :makeworkall
   199 call prj bwins
   200 call makmake ..\group\WSERV wins
   201 nmake -f wserv.wins makework
   202 call makmake ..\group\W32 wins
   203 nmake -f w32.wins makework
   204 call makmake ..\group\WSEXE wins
   205 nmake -f wsexe.wins makework
   206 call makmake ..\group\DEBLOG wins
   207 nmake -f deblog.wins makework
   208 call makmake ..\group\DEBLOGFL wins
   209 nmake -f deblogfl.wins makework
   210 call makmake ..\group\DEBLOGWN wins
   211 nmake -f deblogwn.wins makework
   212 call makmake ..\group\DEBLOGSR wins
   213 nmake -f deblogsr.wins makework
   214 call makmake ..\group\TLIB wins
   215 nmake -f tlib.wins makework
   216 call makmake ..\group\SHELL wins
   217 nmake -f shell.wins makework
   218 call makmake ..\group\CONNECT wins
   219 nmake -f connect.wins makework
   220 call makmake ..\group\HANDANIM wins
   221 nmake -f handanim.wins makework
   222 call makmake ..\group\AUTO wins
   223 nmake -f auto.wins makework
   224 call makmake ..\group\AUTODLL wins
   225 nmake -f autodll.wins makework
   226 call makmake ..\group\TMAN wins
   227 nmake -f tman.wins makework
   228 if !%1==!makework goto end
   229 :makeworkother
   230 call makmake ..\group\TTIME wins
   231 nmake -f ttime.wins makework
   232 call makmake ..\group\ANIM wins
   233 nmake -f anim.wins makework
   234 call makmake ..\group\ANIMDLL wins
   235 nmake -f animdll.wins makework
   236 goto end
   237 
   238 :getbld
   239 :getcomp
   240 :getcomps
   241 if not exist  %EPOCROOT%epoc32\nul md  %EPOCROOT%epoc32
   242 if not exist  %EPOCROOT%epoc32\tools md  %EPOCROOT%epoc32\tools
   243 if not exist  %EPOCROOT%epoc32\data md  %EPOCROOT%epoc32\data
   244 if not exist  %EPOCROOT%epoc32\wins md  %EPOCROOT%epoc32\wins
   245 if not exist  %EPOCROOT%epoc32\wins\c md  %EPOCROOT%epoc32\wins\c
   246 if not exist  %EPOCROOT%epoc32\wins\c\data\nul md  %EPOCROOT%epoc32\wins\c\data
   247 if not exist  %EPOCROOT%epoc32\include\nul md  %EPOCROOT%epoc32\include
   248 if not exist  %EPOCROOT%epoc32\release\nul md  %EPOCROOT%epoc32\release
   249 if not exist  %EPOCROOT%epoc32\release\wins\nul md  %EPOCROOT%epoc32\release\wins
   250 if not exist  %EPOCROOT%epoc32\release\wins\udeb\nul md  %EPOCROOT%epoc32\release\wins\udeb
   251 if not exist  %EPOCROOT%epoc32\release\wins\urel\nul md  %EPOCROOT%epoc32\release\wins\urel
   252 if not exist  %EPOCROOT%epoc32\release\marm\nul md  %EPOCROOT%epoc32\release\marm
   253 if not exist  %EPOCROOT%epoc32\release\marm\udeb\nul md  %EPOCROOT%epoc32\release\marm\udeb
   254 if not exist  %EPOCROOT%epoc32\release\marm\urel\nul md  %EPOCROOT%epoc32\release\marm\urel
   255 goto end
   256 
   257 :getsdk
   258 set _group=sdk
   259 set _grver=%_vsdk%
   260 if not exist  %EPOCROOT%epoc32\data\nul md  %EPOCROOT%epoc32\DATA
   261 cd  %EPOCROOT%epoc32\data
   262 set _drv=C:
   263 call ..\group\getrel %_group% sdmodels %_grver%
   264 set _drv=
   265 goto endgroup
   266 
   267 :getsrc
   268 setlocal
   269 set p4client=Lon-DougF_Main_Source
   270 p4 sync %3 //EPOC/Main/generic/.../%2/...@%_main_ver_sub%
   271 endlocal
   272 goto end
   273 
   274 :getsrctip
   275 setlocal
   276 set p4client=Lon-DougF_Main_Source
   277 p4 sync %3 //EPOC/Main/generic/%2/...
   278 endlocal
   279 goto end
   280 
   281 
   282 rem ===============Comparing Freeze Files===================
   283 
   284 :def
   285 REM b  %EPOCROOT%epoc32\build\wserv\winsd\deb\tanimd.def \wserv\bwins\wsanim.def
   286 copy  %EPOCROOT%epoc32\build\wserv\winsd\deb\tanimd.def \wserv\bwins
   287 goto end
   288 
   289 :difdefs
   290 if exist ..\ws32.lis del ..\ws32.lis
   291 defmake  %EPOCROOT%epoc32\release\wins\rel\ws32.dll  %EPOCROOT%epoc32\release\wins\rel\ws32.def
   292 vdiff ..\bwins\ws32.def  %EPOCROOT%epoc32\release\wins\rel\ws32.def > ..\ws32.lis
   293 defmake  %EPOCROOT%epoc32\release\wins\deb\ws32.dll  %EPOCROOT%epoc32\release\wins\deb\ws32.def
   294 vdiff ..\bwins\ws32d.def  %EPOCROOT%epoc32\release\wins\deb\ws32.def >> ..\ws32.lis
   295 goto end
   296 
   297 :bdefs
   298 defmake  %EPOCROOT%epoc32\release\wins\rel\ws32.dll  %EPOCROOT%epoc32\release\wins\rel\ws32.def
   299 b ..\bwins\ws32.def  %EPOCROOT%epoc32\release\wins\rel\ws32.def
   300 goto end
   301 :bdefsm
   302 dlltool --output-def ws32.def  %EPOCROOT%epoc32\build\wserv\marmd\rel\ws32.in
   303 b ..\bmarm\ws32.frz  %EPOCROOT%epoc32\release\marm\rel\ws32.def
   304 goto end
   305 
   306 
   307 rem ================ Run test code ===============
   308 
   309 :run
   310 :runudeb
   311 set _rdir_=udeb
   312 call ..\group\mnt dorun %2 %3
   313 goto end
   314 
   315 :runurel
   316 set _rdir_=urel
   317 call ..\group\mnt dorun %2 %3
   318 goto end
   319 
   320 :dorun
   321 call prj test
   322 call ..\group\mnt xrun epoc %2 %3
   323 goto end
   324 
   325 :xrun
   326 start  %EPOCROOT%epoc32\release\wins\%_rdir_%\%2
   327 set _rdir_=
   328 goto end
   329 
   330 rem ================ Quick backup to zipping to the U drive
   331 
   332 :backup
   333 if exist u:\netx.bug goto do_it
   334 echo Death! Death! no network to back up to
   335 goto end
   336 :do_it
   337 call prj group
   338 if %2?==? goto update
   339 call kill u:\wserv\bak.zip
   340 pkzip u:\wserv\bak.zip \wserv\*.* -wHS -r -p -x@exclude.prj
   341 attrib \wserv\*.* -A /S
   342 goto end
   343 :update
   344 pkzip u:\wserv\bak.zip \wserv\*.* -i -wHS -r -p -x@exclude.prj
   345 goto end
   346 
   347 rem ================ Install ==============
   348 
   349 :install
   350 echo Replacing WSINI.INI files with test versions.
   351 call :doinstall wins udeb wservu
   352 call :doinstall wins urel wservu
   353 call :doinstall winscw udeb wservu_multiscreen
   354 call :doinstall winscw urel wservu_multiscreen
   355 
   356 rem If EKA1 then finish because EKA1 does not support multiscreen.
   357 if exist %EPOCROOT%epoc32\release\wins\udeb\auto.dll goto :EOF
   358 if exist %EPOCROOT%epoc32\release\wins\urel\auto.dll goto :EOF
   359 
   360 echo Backing up EPOC.INI.
   361 if not exist %EPOCROOT%epoc32\data\epoc.bak copy %EPOCROOT%epoc32\data\epoc.ini %EPOCROOT%epoc32\data\epoc.bak >nul
   362 
   363 rem add line to epoc.ini so that the system starter will start the emulator in wshell mode
   364 echo. >> %EPOCROOT%epoc32\data\epoc.ini
   365 echo StartupMode 7 >> %EPOCROOT%epoc32\data\epoc.ini
   366 
   367 echo Editing EPOC.INI to use multiscreen.
   368 echo _NewScreen_ >> %EPOCROOT%epoc32\data\epoc.ini
   369 echo ScreenWidth 640 >> %EPOCROOT%epoc32\data\epoc.ini
   370 echo ScreenHeight 240 >> %EPOCROOT%epoc32\data\epoc.ini
   371 goto :EOF
   372 
   373 
   374 :doinstall
   375 rem Back up WSINI.INI
   376 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
   377 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
   378 
   379 rem Back up ECONS.DLL
   380 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
   381 
   382 rem Rename WSECONS.DLL to ECONS.DLL
   383 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
   384 
   385 if "%4"=="nonnga" goto :dononngainstall
   386 
   387 rem Replace WSINI.INI with test version
   388 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
   389 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
   390 goto :EOF
   391 
   392 rem ================ Uninstall ==============
   393 
   394 :uninstall
   395 echo Restoring WSINI.INI files.
   396 call :douninstall wins udeb
   397 call :douninstall wins urel
   398 call :douninstall winscw udeb
   399 call :douninstall winscw urel
   400 
   401 rem If EKA1 then finish because EKA1 does not support multiscreen.
   402 if exist %EPOCROOT%epoc32\release\wins\udeb\auto.dll goto :EOF
   403 if exist %EPOCROOT%epoc32\release\wins\urel\auto.dll goto :EOF
   404 
   405 echo Restoring EPOC.INI.
   406 if exist %EPOCROOT%epoc32\data\epoc.bak xcopy /r /y %EPOCROOT%epoc32\data\epoc.bak %EPOCROOT%epoc32\data\epoc.ini >nul
   407 goto :EOF
   408 
   409 echo Restoring backedup ECONS.DLL
   410 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
   411 goto :EOF
   412 
   413 :douninstall
   414 rem Restore WSINI.INI
   415 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
   416 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
   417 goto :EOF
   418 
   419 rem =================================================
   420 
   421 :absolutefadingtest
   422 call mnt install
   423 copy ..\group\absolutefading.ini %EPOCROOT%epoc32\release\wins\udeb\z\private\10003b20\wsini.ini >NUL
   424 copy \wserv\group\absolutefading.ini %EPOCROOT%epoc32\release\wins\urel\z\system\data\wsini.ini >NUL
   425 goto end
   426 
   427 rem ================ Clean up temp files ==============
   428 
   429 :cleanup
   430 xdel ..\*.err /ns
   431 xdel ..\*.lis /ns
   432 xdel ..\*.log /ns
   433 goto end
   434 
   435 rem ================ Check for files not in li.prj ==============
   436 
   437 :check
   438 @perl -w c:\bin\CHECKADD.PL wserv %2 %3 %4 %5 %6 %7 %8 %9
   439 goto end
   440 
   441 
   442 rem ================ SWAP! =================
   443 
   444 :bsw
   445 :bswap
   446 :swb
   447 :swapb
   448 if not exist %EPOCROOT%epoc32\release\wins\udeb\bak\null goto dobackswap
   449 echo Already done!!!
   450 goto end
   451 :dobackswap
   452 cd %EPOCROOT%epoc32\release\wins
   453 md udeb\BAK
   454 md urel\BAK
   455 rem cd ..\marm
   456 rem md udeb\BAK
   457 rem md urel\BAK
   458 cd %EPOCROOT%epoc32\release\wins
   459 copy udeb\ws*.* udeb\bak
   460 copy urel\ws*.* urel\bak
   461 rem cd ..\marm
   462 rem copy udeb\ws*.* udeb\bak
   463 rem copy urel\ws*.* urel\bak
   464 goto endgroup
   465 
   466 :swap
   467 if exist %EPOCROOT%epoc32\release\marm\urel\bak\wserv.exe goto doswap
   468 echo Not done a backup!!
   469 goto end
   470 :doswap
   471 cd %EPOCROOT%epoc32\release\wins
   472 xcopy urel\bak\*.* udeb
   473 xcopy udeb\bak\*.* urel
   474 cd ..\marm
   475 xcopy urel\bak\*.* udeb
   476 xcopy udeb\bak\*.* urel
   477 goto endgroup
   478 
   479 :swapres
   480 :unswap
   481 :swapr
   482 if exist %EPOCROOT%epoc32\release\marm\urel\bak\wserv.exe goto doswaprestore
   483 echo Not done a backup!!
   484 goto end
   485 :doswaprestore
   486 cd %EPOCROOT%epoc32\release\wins
   487 xcopy udeb\bak\*.* udeb
   488 xcopy urel\bak\*.* urel
   489 cd ..\marm
   490 xcopy udeb\bak\*.* udeb
   491 xcopy urel\bak\*.* urel
   492 goto endgroup
   493 
   494 :reverse
   495 if exist %EPOCROOT%epoc32\release\wins\urel\bak\wserv.dll goto dorev
   496 echo Not done a backup!!
   497 goto end
   498 :dorev
   499 cd %EPOCROOT%epoc32\release\wins
   500 if not exist %EPOCROOT%epoc32\release\wins\urel\bak1\wserv.dll goto dorev2
   501 erase /S /Q udeb\bak1
   502 rmdir udeb\bak1
   503 erase /S /Q  urel\bak1
   504 rmdir urel\bak1
   505 :dorev2
   506 rename udeb\bak Bak1
   507 rename urel\bak Bak1
   508 call mnt bsw
   509 cd %EPOCROOT%epoc32\release\wins
   510 xcopy udeb\bak1\*.* udeb
   511 xcopy urel\bak1\*.* urel
   512 goto endgroup
   513 erase /S /Q udeb\bak1
   514 rmdir udeb\bak1
   515 erase /S /Q  urel\bak1
   516 rmdir urel\bak1
   517 goto endgroup
   518 
   519 :export
   520 copy ..\inc\w32*.h %EPOCROOT%epoc32\include
   521 copy ..\bwins\wsanimu.def %EPOCROOT%epoc32\release\wins
   522 copy ..\bmarm\wsanimu.def %EPOCROOT%epoc32\release\marm
   523 goto end
   524 
   525 :epoc32a
   526 xcopy /s /v %EPOCROOT%epoc32a\build\wserv %EPOCROOT%epoc32\build\WSERV
   527 xcopy /s /v %EPOCROOT%epoc32a\make\wserv %EPOCROOT%epoc32\make\WSERV
   528 xcopy /s /v %EPOCROOT%epoc32a\release\arm4\udeb\ws*.*  %EPOCROOT%epoc32\release\arm4\udeb
   529 xcopy /s /v %EPOCROOT%epoc32a\release\arm4\urel\ws*.*  %EPOCROOT%epoc32\release\arm4\urel
   530 xcopy /s /v %EPOCROOT%epoc32a\release\armi\udeb\ws*.*  %EPOCROOT%epoc32\release\armi\udeb
   531 xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\ws*.*  %EPOCROOT%epoc32\release\armi\urel
   532 xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\ws*.*  %EPOCROOT%epoc32\release\thumb\udeb
   533 xcopy /s /v %EPOCROOT%epoc32a\release\thumb\urel\ws*.*  %EPOCROOT%epoc32\release\thumb\urel
   534 
   535 xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\auto.*  %EPOCROOT%epoc32\release\armi\urel
   536 xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\conn.*  %EPOCROOT%epoc32\release\armi\urel
   537 xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\dlog*.*  %EPOCROOT%epoc32\release\armi\urel
   538 xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\shell.*  %EPOCROOT%epoc32\release\armi\urel
   539 xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\tlib.*  %EPOCROOT%epoc32\release\armi\urel
   540 xcopy /s /v %EPOCROOT%epoc32a\release\armi\urel\tman.*  %EPOCROOT%epoc32\release\armi\urel
   541 
   542 xcopy /s /v %EPOCROOT%epoc32a\release\thumb\udeb\anidll.*  %EPOCROOT%epoc32\release\thumb\udeb
   543 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\auto*.*  %EPOCROOT%epoc32\release\thumb\udeb
   544 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\conn.*  %EPOCROOT%epoc32\release\thumb\udeb
   545 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\dlog*.*  %EPOCROOT%epoc32\release\thumb\udeb
   546 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\econs.*  %EPOCROOT%epoc32\release\thumb\udeb
   547 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\jotanim.*  %EPOCROOT%epoc32\release\thumb\udeb
   548 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\mbmanim.*  %EPOCROOT%epoc32\release\thumb\udeb
   549 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\shell.*  %EPOCROOT%epoc32\release\thumb\udeb
   550 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\tlib.*  %EPOCROOT%epoc32\release\thumb\udeb
   551 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\udeb\tman.*  %EPOCROOT%epoc32\release\thumb\udeb
   552 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\anidll.*  %EPOCROOT%epoc32\release\thumb\urel
   553 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\auto*.*  %EPOCROOT%epoc32\release\thumb\urel
   554 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\conn.*  %EPOCROOT%epoc32\release\thumb\urel
   555 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\dlog*.*  %EPOCROOT%epoc32\release\thumb\urel
   556 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\econs.*  %EPOCROOT%epoc32\release\thumb\urel
   557 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\jotanim.*  %EPOCROOT%epoc32\release\thumb\urel
   558 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\mbmanim.*  %EPOCROOT%epoc32\release\thumb\urel
   559 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\shell.*  %EPOCROOT%epoc32\release\thumb\urel
   560 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\tlib.*  %EPOCROOT%epoc32\release\thumb\urel
   561 xcopy /s /v  %EPOCROOT%epoc32a\release\thumb\urel\tman.*  %EPOCROOT%epoc32\release\thumb\urel
   562 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\anidll.*  %EPOCROOT%epoc32\release\wins\udeb
   563 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\auto*.*  %EPOCROOT%epoc32\release\wins\udeb
   564 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\conn.*  %EPOCROOT%epoc32\release\wins\udeb
   565 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\dlog*.*  %EPOCROOT%epoc32\release\wins\udeb
   566 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\econs.*  %EPOCROOT%epoc32\release\wins\udeb
   567 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\epoc.*  %EPOCROOT%epoc32\release\wins\udeb
   568 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\mbmanim.*  %EPOCROOT%epoc32\release\wins\udeb
   569 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\shell.*  %EPOCROOT%epoc32\release\wins\udeb
   570 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\tlib.*  %EPOCROOT%epoc32\release\wins\udeb
   571 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\udeb\tman.*  %EPOCROOT%epoc32\release\wins\udeb
   572 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\anidll.*  %EPOCROOT%epoc32\release\wins\urel
   573 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\auto*.*  %EPOCROOT%epoc32\release\wins\urel
   574 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\conn.*  %EPOCROOT%epoc32\release\wins\urel
   575 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\dlog*.*  %EPOCROOT%epoc32\release\wins\urel
   576 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\econs.*  %EPOCROOT%epoc32\release\wins\urel
   577 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\epoc.*  %EPOCROOT%epoc32\release\wins\urel
   578 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\jotanim.*  %EPOCROOT%epoc32\release\wins\urel
   579 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\mbmanim.*  %EPOCROOT%epoc32\release\wins\urel
   580 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\shell.*  %EPOCROOT%epoc32\release\wins\urel
   581 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\tlib.*  %EPOCROOT%epoc32\release\wins\urel
   582 xcopy /s /v  %EPOCROOT%epoc32a\release\wins\urel\tman.*  %EPOCROOT%epoc32\release\wins\urel
   583 goto end
   584 
   585 :depoc32a
   586 del /f /s /q  %EPOCROOT%epoc32a\build\wserv
   587 del /f /s /q  %EPOCROOT%epoc32a\make\wserv
   588 del /f /q  %EPOCROOT%epoc32a\release\arm4\udeb\ws*.*
   589 del /f /q  %EPOCROOT%epoc32a\release\arm4\urel\ws*.*
   590 del /f /q  %EPOCROOT%epoc32a\release\armi\udeb\ws*.*
   591 del /f /q  %EPOCROOT%epoc32a\release\armi\urel\ws*.*
   592 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\ws*.*
   593 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\ws*.*
   594 
   595 del /f /q  %EPOCROOT%epoc32a\release\armi\urel\auto.*
   596 del /f /q  %EPOCROOT%epoc32a\release\armi\urel\conn.*
   597 del /f /q  %EPOCROOT%epoc32a\release\armi\urel\dlog*.*
   598 del /f /q  %EPOCROOT%epoc32a\release\armi\urel\shell.*
   599 del /f /q  %EPOCROOT%epoc32a\release\armi\urel\tlib.*
   600 del /f /q  %EPOCROOT%epoc32a\release\armi\urel\tman.*
   601 
   602 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\anidll.*
   603 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\auto*.*
   604 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\conn.*
   605 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\dlog*.*
   606 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\econs.*
   607 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\jotanim.*
   608 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\mbmanim.*
   609 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\shell.*
   610 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\tlib.*
   611 del /f /q  %EPOCROOT%epoc32a\release\thumb\udeb\tman.*
   612 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\anidll.*
   613 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\auto*.*
   614 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\conn.*
   615 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\dlog*.*
   616 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\econs.*
   617 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\jotanim.*
   618 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\mbmanim.*
   619 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\shell.*
   620 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\tlib.*
   621 del /f /q  %EPOCROOT%epoc32a\release\thumb\urel\tman.*
   622 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\anidll.*
   623 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\auto*.*
   624 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\conn.*
   625 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\dlog*.*
   626 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\econs.*
   627 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\epoc.*
   628 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\mbmanim.*
   629 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\shell.*
   630 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\tlib.*
   631 del /f /q  %EPOCROOT%epoc32a\release\wins\udeb\tman.*
   632 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\anidll.*
   633 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\auto*.*
   634 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\conn.*
   635 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\dlog*.*
   636 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\econs.*
   637 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\epoc.*
   638 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\jotanim.*
   639 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\mbmanim.*
   640 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\shell.*
   641 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\tlib.*
   642 del /f /q  %EPOCROOT%epoc32a\release\wins\urel\tman.*
   643 goto end
   644 
   645 
   646 rem ================ HELP! =================
   647 
   648 :help
   649 echo Parameters are:
   650 echo BACKUP    to backup to U:\wserv
   651 echo GETZIP    to get the zip files for the current baseline
   652 echo GETLINE   to extract all the components we depend on
   653 echo GETSRC {comp}  to get the source of another component
   654 rem echo -----------------------------------------------------------------------
   655 echo DELBLD    to delete all work files for the current build
   656 echo CHECK     to check that all the files in the group are in a .PRJ file
   657 echo ARMUDEB   to build unicode debug code for ARM debug
   658 goto end
   659 
   660 :endgroup
   661 call cont wserv group
   662 :end
   663 set _main_ver=
   664 set _main_ver_sub=
   665 set _prefix=
   666 set _prefixN=
   667 set _ver=
   668 set _ve32tools=
   669 set _ve32toolp=
   670 set _ve32utl=
   671 set _vgditools=
   672 set _ve32=
   673 set _vf32=
   674 set _vgdi=
   675 set _vfntstore=
   676 set _vfbserv=
   677 set _vbitgdi=
   678 set _vstore=
   679 set _vsdk=
   680 set _par1=
   681 set _par2=