Pages

vendredi 14 septembre 2007

PATCHER UN FICHIER SOURCE

* Créer un patch -- (pour representer l'addition d'un nouveau fichier,
faire un diff avec /dev/null.)
$diff -Naur test.old test.cpp > test.patch

* Appliquer un patch
$patch test.cpp test.patch

* Annuler un patch
$patch -R test.cpp test.patch

Aucun commentaire:

Archives du blog