View Single Post
Old 04-30-2014, 09:52 AM   #78
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Sorry for inconvenience, but I modified the batch file again. This one replaces both (3.3.0.bat and 3.3.0_unpack.bat), no second batch file necessary.

Changes:
  • Project name can optionally be set in the batch file.
    • I pre-set it to "3.3.0" (SET projectname=3.3.0).
    • If empty (SET projectname=) the project name is generated based on the filename (e.g., if the name of the batch file is my3.3.0special.bat, the project name will be my3.3.0special and it will be assumed the existence of a folder my3.3.0special_source)
      (I am sorry to have forced the untelling name 3.3.0_unpack on you previoulsly.)
  • The batch file decides whether to unpack files or not. If it does not find a necessary Kobo source file in the {project}_source folder, it tries to unpack it from KoboRoot.tar, KoboRoot.tgz, KoboRoot.zip in this order.
  • Creates KoboRoot.tgz, only if there is something worth packing.
  • The batch file can be called from command line (cd first to tha directory where the batch file is located) with the option "restore" in order to produce a KoboRoot.tgz that restores the original unpatched state of the ereader (no need to modify the .patch files).
    Code:
    >renameMeAsYouLike.bat restore
  • Improved error handling.
Attached Files
File Type: zip renameMeAsYouLike.zip (1.5 KB, 262 views)

Last edited by tshering; 05-01-2014 at 12:41 PM.
tshering is offline   Reply With Quote