LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2003, 11:08 AM   #1
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Rep: Reputation: 31
make patch how-to


Dear all.

This is a "newbie learn to hack" question.

Suppose I have an original tarball, extracted on /home/src/aaaa-1.0
Then I copy it to a new directory, /home/src/aaaa-1.0.a.
I make some modification on several files under
/home/src/aaaa-1.0.a/src.

How can I make a patch file so somebody else
can simply patch the original code as:

patch -p1 < the_newbie.patch

Thanks.
 
Old 12-18-2003, 02:24 PM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Hi,

You can do it with:

# diff -Nur /home/src/aaaa-1.0 /home/src/aaaa-1.0.a > the_newbie.patch
 
Old 12-25-2003, 12:33 AM   #3
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
Thanks mate.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning How To Make Patch From Scratch the_pc_dude Linux - Newbie 2 06-26-2005 08:05 PM
how to make patch CD?????? 44179 SUSE / openSUSE 2 03-27-2005 06:52 PM
Can't 'Make' Qmail Patch ServerStorm Linux - Software 2 01-11-2005 10:46 AM
how to make a driver patch disk scarabs Linux - Hardware 1 03-18-2004 07:08 PM
How to make text file into patch? dtee Linux - Software 2 01-17-2004 11:30 AM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration