Quote:
Originally Posted by mamouton
Hey Jason, the swap menu in active call patch worked great http://forums.precentral.net/webos-p...-hangup-2.html , but once you doctor your pre two files activecall.css and menus.css are gone. I can get them out of the emulator and apply the patch and the patch works great again.
My question after all the extra information is how do you create a patch to create a file that doesn't exist? The only way to apply the patch is to create the two files and apply the change.
|
Well, you can create files that don't exist by alteing the patch header. For example:
Code:
--- /dev/null
+++ /usr/palm/new-file.js
The "/dev/null" basically tells GNU patch it's a new file. That said, looking into the 1.3.1 rom, both activecall.css and menus.css still exist.
Quote:
Originally Posted by mike_pre
I have a question about creating a patch using this tool. I already have a few patches applied to email. js and composeAssistant. js. I was browsing today and saw a post about how to address the reply font being too large and I created a patch, well 2 of them, for the 2 files above. I got it to work by comparing the new files that I got from the thread, and diff'd them to the already patched files from my pre. What process should I follow to get it to work with an original file as well as files that are already patched?
|
It's always best to start from the base unaltered files (extracting the webos rom from the webosdoctor is always handy for this) and build patches from there.
As long as the file you use as the "original" is the unaltered original, and your multiple patches don't edit the exact same lines, then GNU patch should be able to automatically adjust for muliple patches on the same file.