[SLE] diff / patch problems..
From: Anders Norrbring (lists_at_norrbring.se)
Date: 09/29/04
- Previous message: James Ogley: "Re: [SLE] rc.local, but how in Suse?"
- Next in thread: Kastus: "Re: [SLE] diff / patch problems.."
- Reply: Kastus: "Re: [SLE] diff / patch problems.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'SuSE List'" <suse-linux-e@suse.com> Date: Wed, 29 Sep 2004 17:30:55 +0200
I'm about to make a patch for distribution, but I can't seem to get things
right with the diff / patch pair.
I have 2 directory structures where there are some changed files and also
some new files in the "resulting" tree.
So, I tried 'diff -Naur old new' and that part succeeded, but when I try to
apply the patch, it creates the first missing file, but not where it should
be... It's created in the directory where I ran 'patch < patch.diff'
Then it borked on the next file, it's a file with changes.. Patch complains
that it can't find the file at all.
I also tried to edit the diff file header from looking like;
--- ./old/lang/Dan/def_prefs.php 1970-01-01 01:00:00.000000000 +0100
+++ ./new/lang/Dan/def_prefs.php 2004-09-29 16:25:35.000000000 +0200
To look like;
--- ./lang/Dan/def_prefs.php 1970-01-01 01:00:00.000000000 +0100
+++ ./lang/Dan/def_prefs.php 2004-09-29 16:25:35.000000000 +0200
That came up exactly the same. First created file in the wrong place and the
next that should be changed couldn't be found.
Any ideas on how I can fix my problem?
Anders.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: James Ogley: "Re: [SLE] rc.local, but how in Suse?"
- Next in thread: Kastus: "Re: [SLE] diff / patch problems.."
- Reply: Kastus: "Re: [SLE] diff / patch problems.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|