PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > Windows Mobile Development > ROM/Kitchen Development

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-07-2009, 10:25 PM
raidzero's Avatar
N00b
Offline
Pocket PC: Moto Droid @ 1.1GHz
Carrier: VZW
Location: PPCG
 
Join Date: Dec 2008
Posts: 2,193
Reputation: 5220
raidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to raidzero
platformrebuilder debug script help?

I am trying to write a script that will determine for me which packagis corrupted, or causing problems in the kitchen. I am not that good at batch I guess because I cannot make this work. It should just copy each package in from a set directory (of suspect packages) and run platformrebuilder with only that package in there. If it works, it just removes that package and moves in the next one in the suspect directory and so on, once it detects an errorlevel from platformrebuilder, it moves the bad package into a different directory and continues until its done. at that point it will just run forever because I have not gotten that far yet...
but it will tell me what I want to know anyway.
Here's the set-up:

Code:
@echo off

if not exist debug_ext_packages md debug_ext_packages
if exist debug_ext echo Claening up after last run.. && rmdir /s /q debug_ext
if not exist debug_ext md debug_ext
if not exist BROKEN_EXT md BROKEN_EXT
pause

set LOG=debug_kitchen.txt
if exist %LOG% del %LOG%

set BUILD=both
set LOCALE=0409
set ROMHDR=ROM\TEST\romhdr.bin
set XIP_PATTERNS=ROM\TEST\XIP\*
set SYS_PATTERNS=SYS\TEST\*
set OEM_PATTERNS=TEST\*
set EXT_PATTERNS=debug_ext\*
set DSM_TEMPLATE=723fb954-d931-4348-b672-82a188e587b5.dsm
set DSM_INCLUDES=*.*


for /F "tokens=*" %%A in ('dir /A:D /s /b debug_ext_packages') do (
    move %%A debug_ext
    echo %%A
    TOOLS\platformrebuilder.exe >NUL
    rmdir /s /q debug_ext\*
    if not "%errorlevel%"=="0" (
         echo Package %%A breaks the kitchen! 
         move %%A BROKEN_EXT
          )
    
)
inside SYS\TEST is just 23504 SYS like normal
inside TEST is just my OEM stuff, like oemdrivers, etc
inside ROM\TEST is just 23504 XIP.

can anyone shed some light on why this doesn't work? I know this is not really a PPC question and more of a general windows batch question..

maybe you just cannot refer to a variable like that on the next line? though since it is all in the ('s it should be included??? thanks for all insight!
__________________

Last edited by raidzero; 11-08-2009 at 11:03 AM.
 

  PPCGeeks > Windows Mobile > Windows Mobile Development > ROM/Kitchen Development

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 02:39 AM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com