Source: devscripts Severity: wishlist Tags: patch I've written a simple shell script which uses lsdiff and filterdiff (from the patchutils package) to extract patches from a .diff.gz file placing them under debian/ or, if present, debian/patches.
Every modified file is extracted in a different .patch file. If a slash is present in the affected/patched file, it is replaced with three underscores. I've found it very useful when preparing QA uploads for packages which use .diff.gz to store all the patches. It is licensed under the GPL 3 (with the 'at your option, any later version' clause). Example: --- $ apt-get source g2 $ cd g2-0.70/ $ mkdir debian/patches $ diff2patches ../g2_0.70-2.diff.gz Patches will be extracted under debian/patches/ Extracting configure...done Extracting config.guess...done Extracting configure.in...done Extracting Makefile...done Extracting config.sub...done Extracting perl/Makefile.PL...done Extracting g2_perl/Makefile.PL...done Extracting g2_perl/Makefile.PL.in...done Extracting Makefile.in...done --- I believe it might be useful for others so please include it. Sincerely, -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
diff2patches
Description: application/shellscript
signature.asc
Description: This is a digitally signed message part.