10/21/2009, 03:06 PM
|
|
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 470
Thanks: 801
Thanked 12,876 Times in 1,489 Posts
|
I was adding patch creation to the upcoming v2.0 WebOS Theme Builder, when I figured it wouldn't be too much trouble to duplicate most of that section of code and make a quick gui to create unified format patches.
Hopefully someone will get some use of this. Personally I find it easier than commandline, but that's just my personal opinion, heh. Also attached is the source, along with its GPL license. Clicking the "Original File" and "Altered File" text fields will bring up a handy file chooser. ![]() Changelog v1.3 - October 30, 09 - Fixed an issue that in rare circumstances would cause the .patch to fail v1.2 - October 26, 09 - Fixed another issue with patches being created from files with no trailing newline character - Added reset button - Added file drag and drop support - Added support for optional patch meta data for patch name, version, author, etc. v1.1 - October 22, 09 - Fixed issue with creating patches of files not ending with new lines v1.0 - October 21, 09 - Initial release Last edited by Jason Robitaille; 10/30/2009 at 07:51 PM. |
|
Thanked by
4wheels, andidendel, balderson, bigredgpk, bpdamas, caj2008, CvvB, cwgtex, DaDueler, Dogg006, ebasso, elryon, eps1lon3, estockda, GreenHex, intron, javo0112, jhoff80, Jonolee, kbywal, kostka, Kratus, mcpreos2009, mhous33, michote, mjkjr, monkeydog, nxg125, oricaluv, osirus, SirWill, sjsharksfan, sketch42, smovemc, spudland, SqyArc, TheAngelOfElysium, thornev, TIWizard, Veritas06, wtgreen, xanthinealkaloid
|
10/21/2009, 03:27 PM
|
#2 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Apr 2003
Location: Boston-area
Posts: 6,977
Likes: 112
Thanks: 418
Thanked 1,251 Times in 710 Posts
|
Pretty cool. Too bad it doesn't support when multiple files are changed, so that I could create .patch files for some of the manual stuff I did, but thanks for this anyway, it should be helpful.
|
|
|
10/21/2009, 03:47 PM
|
#3 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Everett, WA
Posts: 441
Likes: 0
Thanks: 63
Thanked 48 Times in 41 Posts
|
Like it how it is, but if only it could package it up in the .ipkg format for preware too. I can install OTA at work, but can't install via WOSQI at work and believe it or not, sometimes i have more spare time at work than at home. Darn kids...
__________________
----------------- Palm III, Palm IIIc, TT, T3, T5, TX, Pre from Day 1. |
|
|
10/21/2009, 04:22 PM
|
#4 (permalink) |
|
Member
![]() ![]() Join Date: Jul 2009
Location: Arizona
Posts: 716
Likes: 0
Thanks: 33
Thanked 373 Times in 163 Posts
|
yeah, multiple files would be good... but figured I'd just make multiple patch files and add them together... if that works...
__________________
Avatar on Left Patch Call Rejecter Patch Make your messanger look like the iphone's SMS tone per Contact No Alert During call Thanks are always appreciated or for a really big Thanks you can always: (it can go a long way to convince my fiancee that this is worth my time)Please feel free to PM for more direct assistance. |
|
|
10/21/2009, 04:28 PM
|
|
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 470
Thanks: 801
Thanked 12,876 Times in 1,489 Posts
|
yep, that'd work, but add each consecutive patch on the trailing empty line of the previous. As long as the only "" empty line is at the ends of the file, multiple patches should work
|
|
|
10/21/2009, 04:53 PM
|
#6 (permalink) |
|
Developer
![]() ![]() Join Date: Jul 2009
Posts: 1,400
Likes: 3
Thanks: 17
Thanked 1,540 Times in 376 Posts
|
Empty lines don't matter, patch will ignore the extra junk (even blocks of comment text before diff - line should be ignored correctly).
__________________
-Eric G WebOS Internals Developer. Follow me on Twitter for updates to my projects: | Virtual Keyboard | wIRC | SuperTux | AUPT | KeyBoss | freeTether | Donate |
|
|
10/21/2009, 10:01 PM
|
#8 (permalink) |
|
Member
![]() ![]() Join Date: Jul 2009
Location: Arizona
Posts: 716
Likes: 0
Thanks: 33
Thanked 373 Times in 163 Posts
|
grrrrr..... I keep getting hunk failed for every change.... arrrgh!!! I dont know what's wrong...
__________________
Avatar on Left Patch Call Rejecter Patch Make your messanger look like the iphone's SMS tone per Contact No Alert During call Thanks are always appreciated or for a really big Thanks you can always: (it can go a long way to convince my fiancee that this is worth my time)Please feel free to PM for more direct assistance. |
|
|
10/26/2009, 10:34 AM
|
|
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 470
Thanks: 801
Thanked 12,876 Times in 1,489 Posts
|
New version out, hopefully I'm not the only one using this app, lol
v1.2 - October 26, 09 - Fixed another issue with patches being created from files with no trailing newline character - Added reset button - Added file drag and drop support - Added support for optional patch meta data for patch name, version, author, etc. |
|
|
10/27/2009, 12:12 AM
|
#10 (permalink) |
|
Member
![]() Join Date: Aug 2009
Posts: 138
Likes: 0
Thanks: 7
Thanked 47 Times in 22 Posts
|
I made a .patch with this utility (thank you, btw) but the change I am trying to make also requires an image change. How do I package the .patch and the image together as an .ipk?
|
|
|
10/28/2009, 08:00 PM
|
#12 (permalink) | |
|
Member
![]() ![]() Join Date: Jul 2009
Location: Arizona
Posts: 716
Likes: 0
Thanks: 33
Thanked 373 Times in 163 Posts
|
Quote:
__________________
Avatar on Left Patch Call Rejecter Patch Make your messanger look like the iphone's SMS tone per Contact No Alert During call Thanks are always appreciated or for a really big Thanks you can always: (it can go a long way to convince my fiancee that this is worth my time)Please feel free to PM for more direct assistance. |
|
|
|
11/09/2009, 03:18 AM
|
|
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 470
Thanks: 801
Thanked 12,876 Times in 1,489 Posts
|
What new version? current version not working for ya?
__________________
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 |
|
|
11/23/2009, 11:07 AM
|
#15 (permalink) |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes: 5
Thanks: 795
Thanked 1,165 Times in 801 Posts
|
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. |
|
|
12/06/2009, 11:20 PM
|
#16 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 127
Likes: 0
Thanks: 14
Thanked 21 Times in 18 Posts
|
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?
|
|
|
12/06/2009, 11:54 PM
|
|
||
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 470
Thanks: 801
Thanked 12,876 Times in 1,489 Posts
|
Quote:
Code:
--- /dev/null +++ /usr/palm/new-file.js Quote:
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 |
||
|
|
12/07/2009, 10:01 PM
|
#19 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 127
Likes: 0
Thanks: 14
Thanked 21 Times in 18 Posts
|
Quote:
Email.kSubjectPrefixRe = $L("Re: "); Email.kSubjectPrefixFw = $L("Fw: "); --- .orig/usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js +++ /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js @@ -712,7 +712,8 @@ var editor = controller.get('msg_rte'); Where the Email.kSubjectPrefixFw = $L("Fw: "); line is the last line in the first patch file and var editor = controller.get('msg_rte'); is the first line in the second patch. I have tried many different combinations and keep getting hunk failures no matter how I join the 2 files. |
|
|
|
12/07/2009, 10:06 PM
|
|
|
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 470
Thanks: 801
Thanked 12,876 Times in 1,489 Posts
|
Quote:
__________________
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 |
|
|
|
![]() |
| webOS Nation Forums Unified Diff Creator |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|




6Likes
















Linear Mode









