hello

some times patch files contains patches for several of files
and these files in different derictory

for example I found a patch file file.patch contains patches of
1) /drupal/modules/image/image.module
2) /drupal/modules/image/contrib/image_attach/image_attach.module
3) /drupal/modules/image/contrib/image_gallery/ image_gallery.module

I put file.patch in /drupal/modules/image directory and use SSH to execute the command
patch < file.patch

but the patch of the last two files failed
I tried: patch p0 < file.patch and no new result

so what should I do ? what about divide the files.patch into 3 parts ?

any suggests ?

Comments

student2’s picture

--------------
any duugstions please!!

behindthepage’s picture

http://linuxshellaccount.blogspot.com/2008/03/easy-multiple-file-patchin...
I found if you put the patch in the root directory and then use the following command

patch -p0 -i patchfile.patch

Regards
Geoff

Regards
Geoff