Gentoo Archives: gentoo-dev

From: Mikael Hallendal <hallski@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] patch file ?
Date: Sun, 26 Aug 2001 16:29:05
Message-Id: 998872179.29942.15.camel@zoidberg
In Reply to: [gentoo-dev] patch file ? by Parag Mehta
1 Den 26 Aug 2001 10:39:19 -0600 skrev Parag Mehta:
2 >
3 > Hi ALl,
4 >
5 > How does one create a patch or diff file ?
6 > i hv an ebuild for a pkg where in i need to change some files after unpack the pkg src.
7 >
8 > thanx in advance.
9
10 Hi!
11
12 If you have to change many files it's best to make two copies of the
13 source and name them like:
14
15 directory.orig
16 directory
17
18 make your changes in directory and then put yourself in the directory
19 containing both directories and typ
20
21 diff -u directory.orig directory > my_file.patch
22
23 Regards,
24 Mikael Hallendal
25
26 --
27
28 Mikael Hallendal
29 Gentoo Linux Developer, Desktop Team Leader
30 CodeFactory AB, Stockholm, Sweden