diff/patch directorios y binarios

Bueno, con la salida del nuevo humble bundle, incluye el juego psyconauts, oficialmente no existe traducción, pero los chicos del clan dlan, se curraron una.

Después de comprobar que funciona perfectamente la traducción en linux, quería redistribuirla a través de un parche, ya que el clan dlan lo distribuyo a través de un ejecutable de windows y este no es compatible con linux... y mmm.. no quiero colgar los ficheros enteros modificados ya que me imagino que violaría algun copyright al distribuir estos ficheros.

Al principio iba a usar xdelta.. pero como no soportaba el generar un parche de los directorios he decidido usar diff.

Para generar el parche uso diff

diff -a -r --binary English_antes_trad/ English_desp_trad/ >parche.patch


El problema viene cuando intento aplicar el parche para ver si se ha generado bien el parche... lo he intenado de mil maneras.. seguramente estaré cometiendo algún error estúpido..

si lo intento usar de esta manera

patch --binary -d ./English parche.patch


Se queda congelado sin hacer nada, y tengo que matar el proceso.

si lo uso de la forma

patch --binary p0<parche.patch


Obtengo una retalla de errores del estilo
patching file p0
Hunk #1 FAILED at 4.
Hunk #2 FAILED at 14.
Hunk #3 FAILED at 60.
Hunk #4 FAILED at 81.
Hunk #5 FAILED at 245.
Hunk #6 FAILED at 248.
Hunk #7 FAILED at 253.
Hunk #8 FAILED at 256.
Hunk #9 FAILED at 259.
Hunk #10 FAILED at 275.
Hunk #11 FAILED at 279.
Hunk #12 FAILED at 287.
Hunk #13 FAILED at 328.
Hunk #14 FAILED at 354.
Hunk #15 FAILED at 371.
Hunk #16 FAILED at 374.
Hunk #17 FAILED at 400.
Hunk #18 FAILED at 433.
Hunk #19 FAILED at 442.
Hunk #20 FAILED at 453.
Hunk #21 FAILED at 455.
Hunk #22 FAILED at 460.
Hunk #23 FAILED at 475.
Hunk #24 FAILED at 503.
Hunk #25 FAILED at 509.
Hunk #26 FAILED at 522.
Hunk #27 FAILED at 547.
Hunk #28 FAILED at 563.
Hunk #29 FAILED at 588.
Hunk #30 FAILED at 625.
Hunk #31 FAILED at 631.
Hunk #32 FAILED at 658.
Hunk #33 FAILED at 662.
Hunk #34 FAILED at 665.
Hunk #35 FAILED at 693.
Hunk #36 FAILED at 720.
Hunk #37 FAILED at 723.
Hunk #38 FAILED at 727.
Hunk #39 FAILED at 751.
Hunk #40 FAILED at 765.
Hunk #41 FAILED at 769.
Hunk #42 FAILED at 777.
Hunk #43 FAILED at 792.
Hunk #44 FAILED at 807.
Hunk #45 FAILED at 826.
Hunk #46 FAILED at 842.
Hunk #47 FAILED at 845.
Hunk #48 FAILED at 879.
Hunk #49 FAILED at 926.
Hunk #50 FAILED at 930.
Hunk #51 FAILED at 939.
Hunk #52 FAILED at 971.
Hunk #53 FAILED at 980.
Hunk #54 FAILED at 984.
Hunk #55 FAILED at 1038.
Hunk #56 FAILED at 1067.
56 out of 56 hunks FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 20.
Hunk #3 FAILED at 24.
Hunk #4 FAILED at 28.
Hunk #5 FAILED at 114.
Hunk #6 FAILED at 143.
Hunk #7 FAILED at 187.
Hunk #8 FAILED at 190.
Hunk #9 FAILED at 192.
Hunk #10 FAILED at 204.
Hunk #11 FAILED at 206.
Hunk #12 FAILED at 218.
Hunk #13 FAILED at 221.
Hunk #14 FAILED at 234.
Hunk #15 FAILED at 311.
Hunk #16 FAILED at 346.
Hunk #17 FAILED at 351.
Hunk #18 FAILED at 353.
18 out of 18 hunks FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 3.


Que estoy haciendo mal?

Saludos y gracias.

En cuanto compruebe el funcionamiento, lo subo que ocupara comprimido unos 340kB

--------------

asunto arreglado
0 respuestas