On Tue, Jul 7, 2009 at 8:54 AM, tarun gulyani<[email protected]> wrote:
> Hi All,
>
> Please tell me how to add header in patch file. Actually i am creating patch
> using "diff -Nur install.sh install_1.sh > gnowsys.patch".
Run "cd .." first, and add the directory name. Also, I think the 2nd
filename needs to match what is in the archive, rather than the first.
e.g. diff -Nur gnowsys-*/install.sh.orig gnowsys-*/install.sh
The "-r" argument to diff lets you make a complete copy of the source
("cp -pr source source.orig"), then you can just edit files in place
and let diff figure out what has changed.
> It giving error, when i am checking patch using "patch -p1 <
> gnowsys.patch".
>
>
> Error is :
>
> patch -p1 < gnowsys.patch
> missing header for unified diff at line 4 of patch
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -Nur install.sh install_1.sh
> |--- install.sh 2009-05-06 15:09:03.000000000 +0530
> |+++ install_1.sh 2009-07-07 15:00:18.000000000 +0530
Note that there is no directory in the above pathnames - the "-p1"
argument says to take off one directory from the pathname.
--
- Charles Lepple
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel