[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How create and apply a patch in one directory ??
From: |
andre duarte bueno |
Subject: |
How create and apply a patch in one directory ?? |
Date: |
Mon, 23 Jun 2003 17:56:25 -0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.2.1) Gecko/20030225 |
PS:
Sorry if appears as a base question, but all book about linux
programming not cover patch
in a directory, only on an individual file.
1) I create the directory
/tmp/teste
2) then input files
address@hidden tmp]$ ls teste
CVS List-15-2-TCirculo.cpp
List-19-1-TPonto.h List-40-2-makefile-libtool teste.patch
doxygem.config List-16-2-TElipse.h
List-19-2-TPonto.cpp List-40-3-makefile-libtool.uso uso-makefile
List-11-5-TPonto.h List-16-3-TElipse.cpp
List-39-4-makefile List-40-4-temposprocessamento
List-11-6-TPonto.cpp List-17-1-Polimorfismo
List-39-5-makefile.uso makefile
List-15-1-TCirculo.h List-17-1-Polimorfismo.cpp
List-40-1-libtool--help.txt
3) I create a new version of teste
cd /tmp
cp -R teste teste-r2
4)
I modify the file teste-r2/List-17-1-Polimorfismo.cpp including new
lines of code.
5) I create a diff file using
cd /tmp
diff teste teste-r2 > patch_file
6) I use
cd /tmp
patch -p0 < patch_file
BUT the patch not run OK ???
the message are
address@hidden tmp]$ patch -p0 < patch_file
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Common subdirectories: teste/CVS and teste-r2/CVS
|diff teste/List-17-1-Polimorfismo.cpp teste-r2/List-17-1-Polimorfismo.cpp
--------------------------
File to patch:
- How create and apply a patch in one directory ??,
andre duarte bueno <=