Yes, there is. You save a copy of the original file somewhere else, then edit the file. Afterwards you run diff to create a patch, which you can apply later in the PKGBUILD. For an introduction to patch and diff see e.g. http://jungels.net/articles/diff-patch-ten-minutes.html. For an example of a PKGBUILD that uses patch, see e.g. http://gitorious.org/chakra-packages/ap … e/PKGBUILD.
It's been quite a while since I've posted here.. :eek:
Like most of my other mods, this is some kind of imitation lol :D
Yon can find Atrix HD's home launcher in here but it looks like doesn't work properly on jellybean..
I can create a patch for a file with the following:
Code:
diff -uN OldFile NewFile > patch.txt
then apply the patch with:
Code:
patch OldFile < patch.txt
I tried this with directories:
Code:
diff -uN OldDirectory NewDirectory > patch.txt
it seemed to work fine. Then I tried to apply the patch:
I'm not much of a unix guy so I'll just go ahead and ask:
I have a following problem - two folders with plenty of subfolders. I need to diff them.
I tried this:
diff -drupN vanila_kernel_3.0.8 my_kernel_3.0.8 > kernel.patch
and that results in a 85mb file...
Hi all, I kwow there are many ways to insert string into a files all over the forum, but I need to make that process like patch do because in the same file I can have the same pattern in many locations, for that I need the send two patterns, one for "before" and another for the "after".
I cannot be capable to do it with patch and diff because the original file to be patched ca
i have two text files test1.txt and test2.txt with content as
test1.txt
1
2
test2.txt
1
2
3
4
what i have achieved with the txt files is a difference of both files in a third file as
diff test2.txt test1.txt > test.patch
patch test.txt < test.patch
in text.txt i have the resultant difference of both files.
Now i am doing the same with CSV files.
Could anyone help me with this code
diff -u /home/mint/projekt/exp/.le/f1.txt /home/mint/projekt/proj/f1.txt > /home/mint/projekt/exp/patch.patch
patch /home/mint/projekt/exp/f1.txt /home/mint/projekt/exp/patch.patch
I want to patch f1.txt with output from diff -u command can anyone help me because this doesn't work and an error : HUNK #1 FAILED at 1. still appears
The diff you use rename tile() to ntile(), you should not have tile in your config.h. The rest of errors probably relate to what the diff has nerfed.I think you should stay on 5.8.2 until all the patches have support for 5.9 if you can't patch on patch on your own.
livibetter
https://bbs.archlinux.org/profile.php?id=16513
2011-09-12T14:49:19Z
hi friends,
i am able to parse cvs diff file using bit of cut and grep commands to produce following output in text file
'''cvs-diff.txt'''
Code:
Package-Name = dev-freetype.
Old-Version = 2.4.8
New-Version = 2.4.10
Patches-removed = freetype-2.4.8-cross-compile.patch freetype-2.4.8-opentype.patch freetype-2.4.8-yahoo-widget.patch
Patches-added = freetype-2.4.10-cross-compile.patch freet