blob: 4556440a5c41076d676c6d30d09ebde9c06ef4e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
# compare the packages extracted in pkg/ to the packages from debian
_check() {
local pacpkg=$1
local debpkg=$2
libremessages msg "dpkg:$debpkg -> pacman:$pacpkg"
make -f compare.mk tmp/$pacpkg.pacman.filelist tmp/$debpkg.debian.filelist &>/dev/null
echo -e 'pacman\tdpkg'
comm -3 \
<(sed -e 's|\.gz$||' tmp/$pacpkg.pacman.filelist|sort) \
<(sed -e 's|\.gz$||' -e '/^usr\/share\/man\/..\/man.\//d' -e 's|usr/share/perl5/|&vendor_perl/|' -e "s|$debpkg|$pacpkg|g" tmp/$debpkg.debian.filelist|sort)
}
mkdir -p tmp
_check dpkg dpkg
_check dpkg-devtools dpkg-dev
_check dselect dselect
_check libdpkg libdpkg-dev
_check perl-dpkg libdpkg-perl
rm -rf tmp
|