View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#1791
Originally Posted by Ancelad View Post
Ok, let's do it step by step...

1) Login into putty and winscp
2) Go to destination folder, for example, /usr/share/fonts
Code:
cd /usr/share/fonts
3) Decide, what file will be changed and copy it to backup, for example, file is Sans.ttf
Code:
cp Sans.ttf Sans.ttf.orig
4) Edit Sans.ttf as you want and save the file
5) Run
Code:
diff -u Sans.ttf.orig Sans.ttf > unified_diff.patch
This will create unified_diff.patch into /usr/share/fonts
6) Open unified_diff.patch and you will see something like this:
Code:
--- Sans.ttf.orig
+++ Sans.ttf
*some diff-code*
Edit it to
Code:
--- /usr/share/fonts/Sans.ttf
+++ /usr/share/fonts/Sans.ttf
*some diff-code*
And save patch...
Thank you Ancelad, much clearer, but still not helping for some reason.

You do see that I'm diffing on folders not files and the files are font files and so are not editable.
So far, I have succeeded in generating empty unified_diff.patches and others containing nothing relating to any other type of patch file I've seen so far. I don't know what I'm doing wrong.

I need to clean up my file system, there are unwanted files all over now, boy, what a mess and it only serves to confuse me more. This is harder than I thought. Files seem easier to diff compared to folders. I will keep trying, thanks for your input. It makes the most sense so far and is familiar to what little I've already learned.
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..