| 1 | @Rem Author: Jorge <josp.jorge@gmail.com>
|
|---|
| 2 |
|
|---|
| 3 | rem @Echo Off
|
|---|
| 4 | Rem Compila tol y toltcl, el postbuild se encarga de copiar los binarios
|
|---|
| 5 | Rem Copia stdlib hacia ActiveTOL
|
|---|
| 6 | Rem Copia tolbase\toltklib\byswidget, tolbase\lib\ hacia ActiveTOL
|
|---|
| 7 |
|
|---|
| 8 | rem SetLocal enableextensions enabledelayedexpansion
|
|---|
| 9 | Rem Validacion de argumentos
|
|---|
| 10 |
|
|---|
| 11 | Rem procesamiento de opciones de linea de comandos
|
|---|
| 12 | Set _rebuild=0
|
|---|
| 13 | Set _jup=0
|
|---|
| 14 | Set _pnsis=0
|
|---|
| 15 | Set _dotests=0
|
|---|
| 16 | Set _dodist=0
|
|---|
| 17 |
|
|---|
| 18 | Set _plog=!CD!\log2clog.exe
|
|---|
| 19 | Set _fbody=!CD!\test_status\BODY.txt
|
|---|
| 20 |
|
|---|
| 21 | If Not Exist test_status\nul (
|
|---|
| 22 | Md test_status
|
|---|
| 23 | )
|
|---|
| 24 |
|
|---|
| 25 | Rem !!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 26 |
|
|---|
| 27 | Set _url_bin_=http://www.tol-project.org/pub/bin/win
|
|---|
| 28 |
|
|---|
| 29 | Set tdt_subject="UPTOL works fine"
|
|---|
| 30 | Set tdt_body=%_fbody%
|
|---|
| 31 | Set tdt_attach=""
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | :READ_OPTS
|
|---|
| 35 | If "%1"=="" Goto END_OPTS
|
|---|
| 36 | If "%1"=="/?" Goto SHOW_HELP
|
|---|
| 37 | If "%1"=="/smartbuild" (
|
|---|
| 38 | Set _rebuild=0
|
|---|
| 39 | Goto NEXT_OPTS
|
|---|
| 40 | )
|
|---|
| 41 | If "%1"=="/rebuild" (
|
|---|
| 42 | Set _rebuild=1
|
|---|
| 43 | Goto NEXT_OPTS
|
|---|
| 44 | )
|
|---|
| 45 | If "%1"=="/jup" (
|
|---|
| 46 | Set _jup=1
|
|---|
| 47 | Goto NEXT_OPTS
|
|---|
| 48 | )
|
|---|
| 49 | If "%1"=="/pnsis" (
|
|---|
| 50 | Set _pnsis=1
|
|---|
| 51 | Goto NEXT_OPTS
|
|---|
| 52 | )
|
|---|
| 53 | If "%1"=="/tests" (
|
|---|
| 54 | Set _dotests=1
|
|---|
| 55 | Goto NEXT_OPTS
|
|---|
| 56 | )
|
|---|
| 57 | If "%1"=="/no_tests" (
|
|---|
| 58 | Set _dotests=0
|
|---|
| 59 | Goto NEXT_OPTS
|
|---|
| 60 | )
|
|---|
| 61 | If "%1"=="/dist" (
|
|---|
| 62 | Set _dodist=1
|
|---|
| 63 | Goto NEXT_OPTS
|
|---|
| 64 | )
|
|---|
| 65 | Set _msg_error=Opcion invalida %1
|
|---|
| 66 | Goto ERROR
|
|---|
| 67 | :NEXT_OPTS
|
|---|
| 68 | Shift
|
|---|
| 69 | Goto READ_OPTS
|
|---|
| 70 | :END_OPTS
|
|---|
| 71 |
|
|---|
| 72 | Rem Goto TMP
|
|---|
| 73 | Rem Goto DODIST
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | If "%_rebuild%"=="1" (
|
|---|
| 77 | Set _rbopt=/rebuild
|
|---|
| 78 | )
|
|---|
| 79 |
|
|---|
| 80 | Set ATOLDIR=!CD!\..\ActiveTol\bin
|
|---|
| 81 |
|
|---|
| 82 | Goto BEGIN
|
|---|
| 83 |
|
|---|
| 84 | Rem Ayuda de uso
|
|---|
| 85 | :SHOW_HELP
|
|---|
| 86 | @more README
|
|---|
| 87 | Goto END
|
|---|
| 88 |
|
|---|
| 89 | Rem Codigo de error
|
|---|
| 90 | :ERROR
|
|---|
| 91 | If Not Defined _msg_error (
|
|---|
| 92 | Echo Error invocado sin mensage
|
|---|
| 93 | ) else (
|
|---|
| 94 | Echo %_msg_error%
|
|---|
| 95 | Set tdt_subject="UPTOL works badly"
|
|---|
| 96 | Echo %_msg_error% >> %_fbody%
|
|---|
| 97 | )
|
|---|
| 98 | Pause
|
|---|
| 99 | Goto END
|
|---|
| 100 |
|
|---|
| 101 | Rem Codigo de retorno generico
|
|---|
| 102 | :RET
|
|---|
| 103 | If Defined _ret (
|
|---|
| 104 | Goto %_ret%
|
|---|
| 105 | ) Else (
|
|---|
| 106 | Set _msg_error=Error interno! Punto de retorno no definido.
|
|---|
| 107 | Goto ERROR
|
|---|
| 108 | )
|
|---|
| 109 |
|
|---|
| 110 | Rem Actualiza scripts en ActiveTOL, recibe como argumento
|
|---|
| 111 | Rem - _dir_src, directorio origen
|
|---|
| 112 | Rem - _dir_dest, directorio destino
|
|---|
| 113 | :UP_SCRIPTS
|
|---|
| 114 | If Exist %_dir_dest%\nul (
|
|---|
| 115 | Echo Borrando scripts antiguos de %_dir_dest%
|
|---|
| 116 | Rmdir /S /Q %_dir_dest%
|
|---|
| 117 | )
|
|---|
| 118 | Echo Copiando scripts nuevos de %_dir_src% a %_dir_dest%
|
|---|
| 119 | xcopy %_dir_src% %_dir_dest% /S /F /Y /I /EXCLUDE:exclude.lst
|
|---|
| 120 | If errorlevel 1 (
|
|---|
| 121 | Set _msg_error=Error copiando %_dir_src% hacia %_dir_dest%
|
|---|
| 122 | Goto ERROR
|
|---|
| 123 | )
|
|---|
| 124 | Goto RET
|
|---|
| 125 |
|
|---|
| 126 | Rem Codigo generico de compilacion
|
|---|
| 127 | :COMPILE
|
|---|
| 128 | Rem Verifico que ejecutemos desde el SDK
|
|---|
| 129 | If Not Defined MSSdk (
|
|---|
| 130 | Set _msg_error=Solo se puede compilar desde una consola Microsoft Platform SDK
|
|---|
| 131 | Goto ERROR
|
|---|
| 132 | )
|
|---|
| 133 | If Not Defined _mod (
|
|---|
| 134 | Set _msg_error=Error interno! variable _mod no definida en COMPILE
|
|---|
| 135 | Goto ERROR
|
|---|
| 136 | )
|
|---|
| 137 | If Not Exist ..\..\%_mod%\nul (
|
|---|
| 138 | Set _msg_error=Error interno! el directorio %_mod% debia existir cuando se ha solicitado su compilacion.
|
|---|
| 139 | Goto ERROR
|
|---|
| 140 | )
|
|---|
| 141 | If Not Defined _sln (
|
|---|
| 142 | Set _msg_error=Error interno variable _sln no definida en COMPILE
|
|---|
| 143 | Goto ERROR
|
|---|
| 144 | )
|
|---|
| 145 | If Not Exist ..\..\%_mod%\win-VC8\%_sln% (
|
|---|
| 146 | Set _msg_error=No se puede compilar, el archivo %_mod%\win-VC8\%_sln% no existe
|
|---|
| 147 | Goto ERROR
|
|---|
| 148 | )
|
|---|
| 149 | If "%_vsvars32%"=="" (
|
|---|
| 150 | If Defined VS80COMNTOOLS (
|
|---|
| 151 | call "%VS80COMNTOOLS%vsvars32"
|
|---|
| 152 | If errorlevel 1 (
|
|---|
| 153 | Set _msg_error=No se pudo ejecutar vsvars32
|
|---|
| 154 | Goto ERROR
|
|---|
| 155 | )
|
|---|
| 156 | Set _vsvars32=1
|
|---|
| 157 | ) else (
|
|---|
| 158 | Echo VS80COMNTOOLS no esta definida intentanto vsvars32 desde el PATH
|
|---|
| 159 | call vsvars32
|
|---|
| 160 | If errorlevel 1 (
|
|---|
| 161 | Set _msg_error=No se pudo ejecutar vsvars32
|
|---|
| 162 | Goto ERROR
|
|---|
| 163 | )
|
|---|
| 164 | )
|
|---|
| 165 | ) else (
|
|---|
| 166 | Echo vsvars32 ya ha sido invocado
|
|---|
| 167 | )
|
|---|
| 168 | Rem Verifico postbuild.bat: aseguro que existe. postbuild copia la compilacion a ActiveTOL
|
|---|
| 169 | If Not Exist ..\..\%_mod%\win-VC8\postbuild.bat (
|
|---|
| 170 | xcopy /F /Y postbuild.bat %_mod%\win-VC8
|
|---|
| 171 | )
|
|---|
| 172 | vcbuild %_rbopt% /useenv ..\..\%_mod%\win-VC8\%_sln% "Release|Win32"
|
|---|
| 173 | If errorlevel 1 (
|
|---|
| 174 | Set _msg_error=Fallo en vcbuild con la solucion %_sln%
|
|---|
| 175 | Goto ERROR
|
|---|
| 176 | )
|
|---|
| 177 | Goto RET
|
|---|
| 178 |
|
|---|
| 179 | :CHECK_VARS
|
|---|
| 180 | For %%v in %_vars% do (
|
|---|
| 181 | If Not defined %%v (
|
|---|
| 182 | Echo La variable %%v debe estar definida para compilar %_mod%
|
|---|
| 183 | If Not Defined _msg_extra Goto END
|
|---|
| 184 | If "%_msg_extra%"=="" Goto END
|
|---|
| 185 | Echo %_msg_extra%
|
|---|
| 186 | Pause
|
|---|
| 187 | Goto END
|
|---|
| 188 | )
|
|---|
| 189 | )
|
|---|
| 190 | Goto RET
|
|---|
| 191 |
|
|---|
| 192 | :BEGIN
|
|---|
| 193 |
|
|---|
| 194 | Rem Compilacion de TOL
|
|---|
| 195 | Set _mod=tol
|
|---|
| 196 | Set _sln=gnutol.sln
|
|---|
| 197 | Set _ret=RET_TOLCC
|
|---|
| 198 | Goto COMPILE
|
|---|
| 199 | :RET_TOLCC
|
|---|
| 200 |
|
|---|
| 201 | Rem Compilacion de TOLTCL
|
|---|
| 202 | Rem Verifico que las variable de entorno de TOLTCL esten definidas
|
|---|
| 203 | Set _vars=(TCL_INCLUDE TCL_LIB)
|
|---|
| 204 | Set _msg_extra=TCL_INCLUDE debe apuntar a los include de Tcl. TCL_LIB debe apuntar a las librerias de Tcl.
|
|---|
| 205 | Set _ret=RET_VARTT
|
|---|
| 206 | Goto CHECK_VARS
|
|---|
| 207 | :RET_VARTT
|
|---|
| 208 | Set _mod=toltcl
|
|---|
| 209 | Set _sln=toltcl.sln
|
|---|
| 210 | Set _ret=RET_TTCC
|
|---|
| 211 | Goto COMPILE
|
|---|
| 212 | :RET_TTCC
|
|---|
| 213 |
|
|---|
| 214 | Rem Compilacion de VBTOL
|
|---|
| 215 | If "%_jup%"=="1" Goto RET_VBCC
|
|---|
| 216 | Set _mod=vbtol
|
|---|
| 217 | Set _sln=vbtol.sln
|
|---|
| 218 | Set _ret=RET_VBCC
|
|---|
| 219 | Goto COMPILE
|
|---|
| 220 | :RET_VBCC
|
|---|
| 221 |
|
|---|
| 222 | Rem Compilacion de TOLSH
|
|---|
| 223 | If "%_jup%"=="1" Goto RET_TSHCC
|
|---|
| 224 | PushD ..\..\tolsh
|
|---|
| 225 | call build
|
|---|
| 226 | xcopy /F /Y tolsh.exe !ATOLDIR!
|
|---|
| 227 | PopD
|
|---|
| 228 | :RET_TSHCC
|
|---|
| 229 |
|
|---|
| 230 | If "%_jup%"=="1" Goto END
|
|---|
| 231 |
|
|---|
| 232 | Rem Copio scripts TOL y TCL hacia ActiveTOL
|
|---|
| 233 | If Not Exist ..\ActiveTOL\nul (
|
|---|
| 234 | Echo Directorio ActiveTOL no existente. No se copiaran scripts.
|
|---|
| 235 | Pause
|
|---|
| 236 | Goto END
|
|---|
| 237 | )
|
|---|
| 238 |
|
|---|
| 239 | Rem Copia de stdlib
|
|---|
| 240 | Set _dir_src=..\..\tol\stdlib
|
|---|
| 241 | Set _dir_dest=..\ActiveTOL\bin\stdlib
|
|---|
| 242 | Set _ret=RET_CPTL
|
|---|
| 243 | Goto UP_SCRIPTS
|
|---|
| 244 | :RET_CPTL
|
|---|
| 245 | Rem copiamos pkgIndex.tcl de toltcl
|
|---|
| 246 | xcopy ..\..\toltcl\pkgIndex.tcl ..\ActiveTOL\lib\toltcl\ /F /Y /I
|
|---|
| 247 | If errorlevel 1 (
|
|---|
| 248 | Set _msg_error=Error copiando toltcl\pkgIndex.tcl hacia ActiveTOL
|
|---|
| 249 | Goto ERROR
|
|---|
| 250 | )
|
|---|
| 251 | Rem Copia de scripts tcl, byswidget, toltk y rmtps_client
|
|---|
| 252 | Rem byswidget
|
|---|
| 253 | Set _dir_src=..\..\tolbase\lib\byswidget
|
|---|
| 254 | Set _dir_dest=..\ActiveTOL\lib\byswidget
|
|---|
| 255 | Set _ret=RET_CPBYS
|
|---|
| 256 | Goto UP_SCRIPTS
|
|---|
| 257 | :RET_CPBYS
|
|---|
| 258 | Rem toltk
|
|---|
| 259 | Set _dir_src=..\..\tolbase\lib\toltk
|
|---|
| 260 | Set _dir_dest=..\ActiveTOL\lib\toltk
|
|---|
| 261 | Set _ret=RET_CPTTK
|
|---|
| 262 | Goto UP_SCRIPTS
|
|---|
| 263 | :RET_CPTTK
|
|---|
| 264 | Rem rmtps_client
|
|---|
| 265 | Set _dir_src=..\..\tolbase\lib\rmtps_client
|
|---|
| 266 | Set _dir_dest=..\ActiveTOL\lib\rmtps_client
|
|---|
| 267 | Set _ret=RET_CPRMT
|
|---|
| 268 | Goto UP_SCRIPTS
|
|---|
| 269 | :RET_CPRMT
|
|---|
| 270 |
|
|---|
| 271 | Rem Recupero ficheros perdidos por cualquier causa
|
|---|
| 272 | If Not Exist ..\ActiveTOL\bin\tol.exe (
|
|---|
| 273 | Echo Recuperando ejecutable perdido ..\ActiveTOL\bin\tol.exe
|
|---|
| 274 | copy ..\..\tol\win-VC8\release\tol.exe ..\ActiveTOL\bin\tol.exe
|
|---|
| 275 | )
|
|---|
| 276 | If Not Exist ..\ActiveTOL\bin\tol.dll (
|
|---|
| 277 | Echo Recuperando librería perdida ..\ActiveTOL\bin\tol.dll
|
|---|
| 278 | copy ..\..\tol\win-VC8\release\tol.dll ..\ActiveTOL\bin\tol.dll
|
|---|
| 279 | )
|
|---|
| 280 | If Not Exist ..\ActiveTOL\bin\tolodbc*.dll (
|
|---|
| 281 | Echo Recuperando librería perdida ..\ActiveTOL\bin\tolodbc*.dll
|
|---|
| 282 | copy ..\..\tol\win-VC8\libtolodbc\Release\*.dll ..\ActiveTOL\bin
|
|---|
| 283 | )
|
|---|
| 284 | If Not Exist ..\ActiveTOL\bin\tolmysql*.dll (
|
|---|
| 285 | Echo Recuperando librería perdida ..\ActiveTOL\bin\tolmysql*.dll
|
|---|
| 286 | copy ..\..\tol\win-VC8\libtolmysql\Release\*.dll ..\ActiveTOL\bin
|
|---|
| 287 | )
|
|---|
| 288 | If Not Exist ..\ActiveTOL\bin\tolpgsql*.dll (
|
|---|
| 289 | Echo Recuperando librería perdida ..\ActiveTOL\bin\tolpgsql*.dll
|
|---|
| 290 | copy ..\..\tol\win-VC8\libtolpgsql\Release\*.dll ..\ActiveTOL\bin
|
|---|
| 291 | )
|
|---|
| 292 | If Not Exist ..\ActiveTOL\lib\toltcl\toltcl.dll (
|
|---|
| 293 | Echo Recuperando librería perdida ..\ActiveTOL\lib\toltcl\toltcl.dll
|
|---|
| 294 | copy ..\..\toltcl\win-vc8\Release\toltcl.dll ..\ActiveTOL\lib\toltcl\toltcl.dll
|
|---|
| 295 | )
|
|---|
| 296 | If Not Exist ..\ActiveTOL\bin\vbtol.dll (
|
|---|
| 297 | Echo Recuperando librería perdida ..\ActiveTOL\bin\vbtol.dll
|
|---|
| 298 | copy ..\..\vbtol\win-vc8\Release\vbtol.dll ..\ActiveTOL\bin\vbtol.dll
|
|---|
| 299 | )
|
|---|
| 300 |
|
|---|
| 301 | Rem Ejecuto los tests si me lo han pedido
|
|---|
| 302 | :DO_TESTS
|
|---|
| 303 | If "%_dodist%"=="1" (
|
|---|
| 304 | If "%_dotests%"=="0" (
|
|---|
| 305 | Echo "Forzando los test de tol debido a que se ha solicitado /dist"
|
|---|
| 306 | Set _dotests=1
|
|---|
| 307 | )
|
|---|
| 308 | )
|
|---|
| 309 |
|
|---|
| 310 | If "%_dotests%"=="1" (
|
|---|
| 311 | If Exist ..\ActiveTOL\bin\tol.exe (
|
|---|
| 312 | If Not Exist test_status (
|
|---|
| 313 | Md test_status
|
|---|
| 314 | ) Else (
|
|---|
| 315 | Del /Q test_status\*.*
|
|---|
| 316 | )
|
|---|
| 317 | Set _tst_cd=!CD!\test_status
|
|---|
| 318 | PushD ..\ActiveTOL\bin
|
|---|
| 319 | Echo Ejecutando Tol standard tests ...
|
|---|
| 320 | tol.exe -v -c"Text DupTestIndicatorPath=\"%CD%\\test_status\"" "..\\..\\tol_tests\\tol\\_tolTester.tol">!_tst_cd!\init.log
|
|---|
| 321 | PopD
|
|---|
| 322 | If Exist test_status\FAIL.txt (
|
|---|
| 323 | Set test_status=FAIL
|
|---|
| 324 | Set tdt_subject="ERROR ejecutando TOL_TESTS"
|
|---|
| 325 | Set tdt_body="La ejecucion de TOL_TESTS genero el archivo de estado FAIL.txt. No se ha actualizado Tolbase en %_url_bin_%."
|
|---|
| 326 | Set tdt_attach=test_status\FAIL.txt
|
|---|
| 327 | ) Else If Exist test_status\WARNING.txt (
|
|---|
| 328 | Set test_status=WARNING
|
|---|
| 329 | Set tdt_subject="Version %_branchid% actualizada, WARNING ejecutando TOL_TESTS"
|
|---|
| 330 | Set tdt_body=test_status\BODY.txt
|
|---|
| 331 | Set tdt_attach=test_status\WARNING.txt
|
|---|
| 332 | ) Else If Exist test_status\OK.txt (
|
|---|
| 333 | Set test_status=OK
|
|---|
| 334 | Set tdt_subject="Version %_branchid% actualizada, OK ejecutando TOL_TESTS"
|
|---|
| 335 | Set tdt_body=test_status\BODY.txt
|
|---|
| 336 | Set tdt_attach=test_status\OK.txt
|
|---|
| 337 | ) Else (
|
|---|
| 338 | Set test_status=FAIL
|
|---|
| 339 | Set tdt_subject="ERROR ejecutando TOL_TEST"
|
|---|
| 340 | Echo TOL_TEST no genero archivo de estado, verifique manualmente /tests>>%_fbody%
|
|---|
| 341 | Echo.>>%_fbody%
|
|---|
| 342 | Echo COMPUTERNAME = %COMPUTERNAME%>>%_fbody%
|
|---|
| 343 | Echo USERNAME = %USERNAME%>>%_fbody%
|
|---|
| 344 | Echo BRANCHID = ""RAMA SVN"
|
|---|
| 345 | Echo.>>%_fbody%
|
|---|
| 346 | Echo Se ha adjuntado el log de inicializacion de TOL.>>%_fbody%
|
|---|
| 347 | Set tdt_body=test_status\BODY.txt
|
|---|
| 348 | Set tdt_attach=test_status\init.log
|
|---|
| 349 | )
|
|---|
| 350 | ) Else (
|
|---|
| 351 | Set _msg_error=No se encuentra ..ºActiveTOL\bin\tol.exe necesario para ejecutar los tests de TOL
|
|---|
| 352 | Goto ERROR
|
|---|
| 353 | )
|
|---|
| 354 | )
|
|---|
| 355 | If "%test_status%"=="FAIL" (
|
|---|
| 356 | Echo TOL_TESTS finalizo con errores, chequee %CD%\test_status
|
|---|
| 357 | Goto SENDMAIL
|
|---|
| 358 | )
|
|---|
| 359 |
|
|---|
| 360 |
|
|---|
| 361 | Rem empaco la distribucion de tolbase si me lo han pedido
|
|---|
| 362 | If "%_dodist%"=="1" (
|
|---|
| 363 | If Not Exist ..\NSIS\Tolbase*.exe (
|
|---|
| 364 | Echo ..\NSIS\Tolbase*.exe no existe
|
|---|
| 365 | If Not "%_pnsis%"=="1" (
|
|---|
| 366 | Echo Habilitando /pnsis para poder hacer /dist
|
|---|
| 367 | Set _pnsis=1
|
|---|
| 368 | )
|
|---|
| 369 | )
|
|---|
| 370 | )
|
|---|
| 371 | Set _cwd=%CD%
|
|---|
| 372 | If "%_pnsis%"=="1" (
|
|---|
| 373 |
|
|---|
| 374 | Echo Generando el archivo de creación del instalador de tolbase ...
|
|---|
| 375 | ..\ActiveTOL\bin\tol -v ..\NSIS\Tolbase.nsi.generate.tol
|
|---|
| 376 | If Not Exist ..\NSIS\Tolbase.nsi (
|
|---|
| 377 | Set _msg_error=El empaquetado de tolbase ..ºNSIS\Tolbase.nsi no existe.
|
|---|
| 378 | Goto ERROR
|
|---|
| 379 | )
|
|---|
| 380 | If Exist ..\NSIS\Tolbase*.exe (
|
|---|
| 381 | Del /Q ..\NSIS\Tolbase*.exe
|
|---|
| 382 | )
|
|---|
| 383 | Echo Creando instalador de tolbase ...
|
|---|
| 384 | makensis /V2 /X"SetCompressor /FINAL /SOLID lzma" ..\NSIS\Tolbase.nsi
|
|---|
| 385 | If Exist ..\NSIS\Tolbase*.exe (
|
|---|
| 386 | Echo El instalador de Tolbase ha sido creado en "%_cwd%\..\NSIS"
|
|---|
| 387 | ) Else (
|
|---|
| 388 | Set _msg_error=No se ha encontrado el resultado de ejecutar makensis
|
|---|
| 389 | Goto ERROR
|
|---|
| 390 | )
|
|---|
| 391 | )
|
|---|
| 392 |
|
|---|
| 393 | :DODIST
|
|---|
| 394 | Rem envio el empaquetado hacia www.tol-project.org si se ha pedido
|
|---|
| 395 | Echo status es %test_status%
|
|---|
| 396 | If "%_dodist%"=="1" (
|
|---|
| 397 | If Exist ..\NSIS\Tolbase*.exe (
|
|---|
| 398 | For %%f In (..\NSIS\Tolbase*.exe) Do (
|
|---|
| 399 | Echo encontrado %%~nxf
|
|---|
| 400 | Set _fbin=%%~nxf
|
|---|
| 401 | )
|
|---|
| 402 | echo Creando el tag automatico correspondiente al empaquetado
|
|---|
| 403 | cd NSIS
|
|---|
| 404 | ..\ActiveTOL\bin\tol -v create_tag_build.tol
|
|---|
| 405 | call create_tag_build.bat
|
|---|
| 406 | Echo copiando last_development_tol_release_win.txt hacia www.tol-project.org
|
|---|
| 407 | ..\ActiveTOL\bin\tol -v -c"Text WriteFile(\"last_development_tol_release_win.txt\",Version);"
|
|---|
| 408 | pscp last_development_tol_release_win.txt toldevel@tolp.localbayes.es:.
|
|---|
| 409 | Echo copiando Tolbase hacia http://www.tol-project.org
|
|---|
| 410 | pscp Tolbase*.exe toldevel@tolp.localbayes.es:.
|
|---|
| 411 | If "%_branchid%"=="REMtrunkREM" (
|
|---|
| 412 | Echo copiando tolbase-%_versionNumber%-setup.exe como tolbase-cvstrunk-setup.exe en www.tol-project.org
|
|---|
| 413 | plink tdt@cvs.tol-project.org "cp /home/bayes/pub/bin/win/tolbase-%_versionNumber%-setup.exe /home/bayes/pub/bin/win/tolbase-cvstrunk-setup.exe"
|
|---|
| 414 | )
|
|---|
| 415 | Echo Moviendo el empaquetado a la carpeta de almacenamiento historico
|
|---|
| 416 | ..\ActiveTOL\bin\tol -v store_history.tol
|
|---|
| 417 | cd..
|
|---|
| 418 | Echo Nueva version %_branchid% disponible en %_url_bin_%/!_fbin!>test_status\BODY.txt
|
|---|
| 419 | Echo.>>%_fbody%
|
|---|
| 420 | Echo El resultado de tol_tests esta disponible en el archivo adjunto.>>%_fbody%
|
|---|
| 421 | Echo.>>%_fbody%
|
|---|
| 422 | ) Else (
|
|---|
| 423 | Echo No se puede enviar Tolbase hacia www.tol-project.exe pues no existe en NSIS
|
|---|
| 424 | Set _msg_error=Utilice /pnsis para construirlo
|
|---|
| 425 | Goto ERROR
|
|---|
| 426 | )
|
|---|
| 427 | ) Else (
|
|---|
| 428 | Goto END
|
|---|
| 429 | )
|
|---|
| 430 |
|
|---|
| 431 | GOTO END
|
|---|
| 432 |
|
|---|
| 433 | :MAILTDT
|
|---|
| 434 | If Not Defined _lastup (
|
|---|
| 435 | Echo.>>%_fbody%
|
|---|
| 436 | Echo Variable interna _lastup con la fecha de la ultima actualizacion no esta definida.>>%_fbody%
|
|---|
| 437 | Echo No se podra generar el reporte de cambios.>>%_fbody%
|
|---|
| 438 | Echo Verifique .cvsopts.bat>>%_fbody%
|
|---|
| 439 | Goto SENDMAIL
|
|---|
| 440 | )
|
|---|
| 441 | Echo Los cambios desde la fecha %_lastup% son los siguientes:>>%_fbody%
|
|---|
| 442 | Rem Log de TOL
|
|---|
| 443 | Set _mod=tol
|
|---|
| 444 | Set _ret=RET_TOLLOG
|
|---|
| 445 | Goto CVS_GENLOG
|
|---|
| 446 | :RET_TOLLOG
|
|---|
| 447 | Rem Log de TOLTCL
|
|---|
| 448 | Set _mod=toltcl
|
|---|
| 449 | Set _ret=RET_TTLOG
|
|---|
| 450 | Goto CVS_GENLOG
|
|---|
| 451 | :RET_TTLOG
|
|---|
| 452 | Rem Log de VBTOL
|
|---|
| 453 | Set _mod=vbtol
|
|---|
| 454 | Set _ret=RET_VBLOG
|
|---|
| 455 | Goto CVS_GENLOG
|
|---|
| 456 | :RET_VBLOG
|
|---|
| 457 | Rem Log de TOLBASE
|
|---|
| 458 | Set _mod=tolbase
|
|---|
| 459 | Set _ret=RET_TBLOG
|
|---|
| 460 | Goto CVS_GENLOG
|
|---|
| 461 | :RET_TBLOG
|
|---|
| 462 | Rem Log de TOL_TESTS
|
|---|
| 463 | Set _mod=tol_tests
|
|---|
| 464 | Set _ret=RET_TTSTLOG
|
|---|
| 465 | Goto CVS_GENLOG
|
|---|
| 466 | :RET_TTSTLOG
|
|---|
| 467 | Rem Actualizo la fecha de ultima actualizacion exitosa
|
|---|
| 468 | Echo Set _lastup=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%>>.cvsopts.bat
|
|---|
| 469 |
|
|---|
| 470 | :SENDMAIL
|
|---|
| 471 | mailtdt %tdt_subject% %tdt_body% %tdt_attach%
|
|---|
| 472 | :END
|
|---|
| 473 | Rem Limpia variables d entorno
|
|---|
| 474 | EndLocal
|
|---|