@echo off rem (C) 2003-2007 Willem Jan Hengeveld rem Web: http://www.xs4all.nl/~itsme/ rem http://wiki.xda-developers.com/ rem rem $Id: unpackrsu.cmd 1502 2007-04-15 07:54:20Z itsme $ rem mkdir cab bin 2>nul if exist RSUpgrade.sa.CAB cabarc x RSUpgrade.sa.CAB cab\ if exist "cab\000setup.999" ren "cab\000setup.999" setup.dll if exist "cab\0rilgsm1.005" ren "cab\0rilgsm1.005" rilgsm1.dll if exist "cab\MONITO~1.002" ren "cab\MONITO~1.002" monitor_ul_bs.map if exist "cab\MONITO~1.003" ren "cab\MONITO~1.003" monitor_ul_bs.m0 if exist "cab\RSUPGR~1.000" ren "cab\RSUPGR~1.000" RSUpgrade.inf if exist "cab\RSUPGR~1.001" ren "cab\RSUPGR~1.001" RSUpgrade.exe if exist "cab\RSUPGR~1.004" ren "cab\RSUPGR~1.004" RSUpgrade.cp64 if exist cab\monitor_ul_bs.m0 ( perl c:\local\projects\xda\srec.pl cab/monitor_ul_bs.m0 -o bin/mon ) else echo "monitor_ul_bs.m0 not found in cab directory" if exist cab\RSUpgrade.cp64 ( perl c:\local\projects\xda\srec.pl -w -l 4 cab/RSUpgrade.cp64 -o bin/rsu strings bin/rsu-00300000.bin | grep -9 32S54 | grep "\."|sed s/^F//|grep -v "1\.3\.2" strings bin/rsu-00020000.bin| perl -ne "print qq($3-$2-$1\n) if (m{clearcase.*(..)/(..)/(..)})" | sort | tail -1 md5sum cab/RSUpgrade.cp64 ) else echo "rsupgrade.cp64 not found in cab directory"