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

Re: md5sums files

James Vega <jamessan@debian.org> writes:
> On Thu, Mar 04, 2010 at 02:11:55AM +0100, Harald Braumann wrote:

>> I think I was finally able to decipher your message. But my other
>> points still hold. And while it is just a matter of programming, simple
>> or not, it already exists in debhelper. So doing it at build time is
>> SMOAOLTDR, by which I mean "simply a matter of adding one line to
>> debian/rules".

> You make the mistake of assuming everyone use debhelper.

Yeah, but:

        @set -ex; \
        cd debian/tmp; \
        find . -path "./DEBIAN" -prune -o -type f -printf '%P\0' \
           | xargs -r0 md5sum > DEBIAN/md5sums

(from debian-policy's rules file).  dh_md5sums isn't particularly
complicated, although admittedly it deals with a few more cases for you,
such as multiple packages.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: