- install -g root -m 644 -o root READ.ME \
- debian/tmp/usr/share/doc/$(p)
- install -g root -m 644 -o root debian/changelog \
- debian/tmp/usr/share/doc/$(p)/changelog.Debian
- gzip -f9 debian/tmp/usr/share/doc/$(p)/*
- install -g root -m 644 -o root debian/copyright \
- debian/tmp/usr/share/doc/$(p)
- install -g root -m 644 -o root debian/lintian-overrides \
- debian/tmp/usr/share/lintian/overrides/mmv
- chmod -R g-sw debian/tmp/usr/share/doc/$(p)
- chown -R root.root debian/tmp/usr/share/doc/$(p)
- dpkg-shlibdeps debian/tmp/usr/bin/mmv
- dpkg-gencontrol -isp
- cd debian/tmp && find * -type f ! -regex '^DEBIAN/.*' -print0 | \
- xargs -r0 md5sum > DEBIAN/md5sums
- dpkg --build debian/tmp && dpkg-name -o -s .. debian/tmp.deb
-
-define checkdir
- test -f mmv.1
-endef