6 expected_man_file_count
=3
7 echo "Checking wheel file"
8 wheel_man_files
=$
(unzip -l build
/dist
/SCons-
*-py3-none-any.whl |
grep -e '[a-z].1$' |
wc -l |
xargs)
9 echo "Number of manpage files: $wheel_man_files"
11 echo "Checking tgz sdist package"
12 tgz_man_files
=$
(tar tvfz build
/dist
/SCons-
*.
tar.gz |
grep -e '[a-z].1$' |
wc -l |
xargs)
14 echo "Checking zip sdist package"
15 zip_man_files
=$
(unzip -l build
/dist
/SCons-
*.
zip |
grep -e '[a-z].1$' |
wc -l |
xargs)
17 if [[ $wheel_man_files != $expected_man_file_count ]]; then
18 echo "Manpages not in wheel"
22 if [[ $tgz_man_files != $expected_man_file_count ]]; then
23 echo "Manpages not in tgz sdist package"
27 if [[ $zip_man_files != $expected_man_file_count ]]; then
28 echo "Manpages not in zip sdist package"