PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   ROM/Kitchen Development (http://forum.ppcgeeks.com/forumdisplay.php?f=38)
-   -   RZ rollup-sort, sort your da-G rollups painlessly! (http://forum.ppcgeeks.com/showthread.php?t=105325)

raidzero 01-08-2010 04:19 PM

RZ rollup-sort, sort your da-G rollups painlessly!
 
1 Attachment(s)
So ever since da_g started posting rollups of ALL packages and ALL DPIs, ALL langs, all resolutions life has been kinda crappy for me. not anymore. Today I decided to do something about it, this is the result.

all you need to do is place this batch file where you want it, then simply drag your SYS rollup onto it. input the info it asks for and when it is done, you will see your new folder inside the rollup directory... you will still need to remove elements that do not apply to you manually, the script is cool, but not magic..
you still need to remove oemxipkernel., msxipkernel, wince.nls, etc as you see fit.


Now I will just wait for indagroove to tell me this has already been done >< lol


edit: oops, found a bug, will fix and reupload before anyone notices ;)

edit 2: bugs fixed, I had one of those "wtf am I thinking" moments. found a much more efficient way to do this..

instead of

Code:

@ECHO OFF
Title Welcome to RZ's rollup sorter, making your life easier! :)
cd %~f1
set /P RESH="Please enter your RESH: "
set /P RESV="Please enter your RESV: "
set /P LANG="Please enter your LANG: "
set /P DPI="Please enter your  DPI: "
set localpath=%cd%
set sortedfolder=SORTED_Lang_%LANG%_DPI_%DPI%_RESH_%RESH%_RESV_%RESV%

if exist %sortedfolder% (
echo Removing existing sorted folder...
rmdir /s /q %sortedfolder%
if not exist %sortedfolder% mkdir %sortedfolder%
ping 127.0.0.1 -n 4 > NUL
echo done
)
cls
echo              *****************************************************
echo            *                      rollup-sort                  *
echo          *                      raidzero                    *
echo              *                          :D                      *
echo          *****************************************************
echo.
echo.
echo.

echo Extracting Core only...
dir /A:D /B | find /v /i "dpi" | find /v /i "lang" > packages.txt
for /F "usebackq delims=" %%A in ("packages.txt") do (
echo D|xcopy /D /H /E /C /Y /Q %%A %sortedfolder%\%%A >NUL
)

echo Extracting DPI only...
dir /A:D /B | find /i "dpi_%DPI%" | find /v /i "lang" | find /v /i "resh" > packages_dpi.txt
for /F "usebackq delims=" %%A in ("packages_dpi.txt") do (
echo D|xcopy /D /H /E /C /Y /Q %%A %sortedfolder%\%%A >NUL

echo Extracting Lang only...
for /F "tokens=*" %%A in ('dir /A:D /B *_LANG_%LANG%') do echo D|xcopy /D /H /E /C /Y /Q %%A %sortedfolder%\%%A >NUL

echo Extracting Lang+DPI only...
for /F "tokens=*" %%A in ('dir /A:D /B *%LANG%_DPI_%DPI%') do echo D|xcopy /D /H /E /C /Y /Q %%A %sortedfolder%\%%A >NUL

echo Extracting Lang+DPI+RES only...
for /F "tokens=*" %%A in ('dir /A:D /B *%LANG%_DPI_%DPI%_RESH_%RESH%_RESV_%RESV%') do echo D|xcopy /D /H /E /C /Y /Q %%A %sortedfolder%\%%A >NUL

cls

del packages.txt
del packages_dpi.txt
echo All done!
echo.
echo You will still be responsible for removing items not relevant to your device/region!
echo.
echo opening new SYS directory...
echo.
explorer %localpath%\%sortedfolder%
pause

it is just

Code:

@ECHO OFF
Title Welcome to RZ's rollup sorter, making your life easier! :)
cd %~f1
set /P RESH="Please enter your RESH: "
set /P RESV="Please enter your RESV: "
set /P LANG="Please enter your LANG: "
set /P DPI="Please enter your  DPI: "
set localpath=%cd%
set sortedfolder=SORTED_Lang_%LANG%_DPI_%DPI%_RESH_%RESH%_RESV_%RESV%

if exist %sortedfolder% (
echo Removing existing sorted folder...
rmdir /s /q %sortedfolder%
if not exist %sortedfolder% mkdir %sortedfolder%
ping 127.0.0.1 -n 4 > NUL
echo done
)
cls
echo              *****************************************************
echo            *                      rollup-sort                  *
echo          *                      raidzero                    *
echo              *                          :D                      *
echo          *****************************************************
echo.
echo.
echo.


dir /A:D /B | find /v /i "dpi" | find /v /i "lang" > packages.txt
dir /A:D /B | find /i "dpi_%DPI%" | find /v /i "lang" | find /v /i "resh" >> packages.txt
dir /A:D /B *_LANG_%LANG% >> packages.txt
dir /A:D /B *%LANG%_DPI_%DPI% >> packages.txt
dir /A:D /B *%LANG%_DPI_%DPI%_RESH_%RESH%_RESV_%RESV% >> packages.txt
type packages.txt | sort > packages_sorted.txt
echo Now extracting the following packages...

for /F "usebackq delims=" %%A in ("packages_sorted.txt") do (
echo D|xcopy /D /H /E /C /Y /Q %%A %sortedfolder%\%%A >NUL
echo %%A
)







cls

del packages.txt

echo All done!
echo.
echo You will still be responsible for removing items not relevant to your device/region!
echo.
echo opening new SYS directory...
echo.
explorer %localpath%\%sortedfolder%
pause

enjoy! :)

SBR_L3GION 01-08-2010 09:53 PM

Re: RZ rollup-sort, sort your da-G rollups painlessly!
 
thank you very much havent tested it yet but Im sure ill be putting it to use sometime this weekend.

indagroove 01-09-2010 03:48 AM

Re: RZ rollup-sort, sort your da-G rollups painlessly!
 
Quote:

Originally Posted by raidzero (Post 1471687)
S
Now I will just wait for indagroove to tell me this has already been done >< lol

It's already been done -- months ago..

Not quite drag and drop, but almost as easy, and it also deletes duplicate files inside modules from dumps, and other stuff and stuff:

http://www.everythingdiamond.info/showthread.php?t=527

http://forum.xda-developers.com/showthread.php?t=542081

raidzero 01-09-2010 11:00 AM

Re: RZ rollup-sort, sort your da-G rollups painlessly!
 
Quote:

Originally Posted by indagroove (Post 1473278)
It's already been done -- months ago..

Not quite drag and drop, but almost as easy, and it also deletes duplicate files inside modules from dumps, and other stuff and stuff:

http://www.everythingdiamond.info/showthread.php?t=527

http://forum.xda-developers.com/showthread.php?t=542081


I looked at dumpsorter and I could not find it able to do this, it can create blank folder layouts but not actually copy packages when given a dpi, resh resv and lang value...

indagroove 01-10-2010 01:05 AM

Re: RZ rollup-sort, sort your da-G rollups painlessly!
 
Maybe I'm missing something, but the dump sorter does sort rollups and dumped sys' into the VK layout. Then you can just delete the dpi folder you don't need if you don't want all the extra packages in your kitchen. Either way, it's always nice to have different tools to do things in different ways.


All times are GMT -4. The time now is 01:07 PM.

Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0