On Tue, Jul 7, 2009 at 2:54 PM, 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".
>
> 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
> --------------------------
> File to patch:
> Skip this patch? [y]
> Skipping patch.
> 9 out of 9 hunks ignored
>
>
> Thanks and Regards
> Tarun Gulyani
> ------------------------------------------------------------------------------

That would need 'patch -p0' rather than -p1,

Either change the PatchScript, or try moving up one directory when you
do the diff:

diff -Nur Plone-2.5.2-UnifiedInstaller/install.sh
Plone-2.5.2-UnifiedInstaller/install_1.sh > gnowsys.patch
-- 
Alexander K. Hansen
akh AT finkproject DOT org
Fink User Liaison and Documenter

------------------------------------------------------------------------------
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

Reply via email to