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.