#1 2010-09-16 05:13:37
- unclepetros
- Member
- Registered: 2010-04-11
- Posts: 88
[HowTo] Build a patch file
Hi,
this is just a note on how to build a Patch file.
Under GNU/Linux
- Copy original file in a new folder and rename it as [filename].orig .
- Copy modified file in the same folder and rename it as [filename].new .
- Move to this folder and do the following:
Code:
diff -u [filename].orig [filename].new > [filename].patch
- The patch file has been generated in the same folder.
If you want to try the patch file just generated, move to the folder containing the file to be patched;
copy the patch file in it and do the following:
Code:
patch [filename] < [filename].patch
.
Under Windows
- Download diff and patch for windows from the following links:
DiffUtils: http://gnuwin32.sourceforge.net/packages/diffutils.htm
Patch: http://gnuwin32.sourceforge.net/packages/patch.htm
- Unpack them and copy the two files diff.exe and patch.exe in the windows folder.
- Move to command prompt and do the same commands as above.
I hope this helps!
Bye
UnclePetros
Offline
#2 2010-09-16 05:15:11
- unclepetros
- Member
- Registered: 2010-04-11
- Posts: 88
Re: [HowTo] Build a patch file
I had posted this in the wrong section (Support);
so I've moved it here.
Let me know if you find this useful.
UnclePetros
Offline
Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.