View Single Post
Old 12/06/2009, 10:54 PM   #17 (permalink)
Jason Robitaille
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 495
Thanks: 801
Thanked 12,951 Times in 1,493 Posts
Default

Quote:
Originally Posted by mamouton View Post
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 View Post
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.
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote