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