[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

deb2changelog



Hi!

I just wrote this small(100b) command to extract the changelog from a
.deb. This is fast, but not bugfree: it works only with packages which
one's Debian changelog is called changelog.Debian.gz. (The "*" should be
replaced with the package name, but not really needed, as that file name
is not widely used really.) You have to pump the .deb into the standard
input, and you'll probably have the changelog on the standard out.

ar p /dev/stdin data.tar.gz | tar xzfO /dev/stdin ./usr/share/doc/*/changelog.Debian.gz | gzip -dc -

Regards,
-- 
Lenart, Janos
<ocsi@debian.org>



Reply to: