set -u . "$TESTSDIR"/test.inc mkdir conf mkdir package-1.0 mkdir package-1.0/debian cat >package-1.0/debian/control < Standards-Version: 0.0 Package: rumsrumsrums Architecture: all Description: a package . Package: dumdidum Architecture: another Description: a package not build . Package: troettroet Architecture: abacus Description: some test-package . END cat >package-1.0/debian/changelog < Mon, 01 Jan 1980 01:02:02 +0000 END dpkg-source -b package-1.0 cat > conf/distributions <> conf/options < package_1.0-1_another.log echo "package_1.0-1_another.log - -" > package-1.0/debian/files cd package-1.0 dpkg-genchanges -B > ../package_1.0-1_another.changes cd .. # work around dpkg-dev 1.18.15+ no longer adding Architectures of log files: if ! grep -q -s '^Architecture:' package_1.0-1_another.changes ; then sed -e 's/^Version:/Architecture: another\n&/' -i package_1.0-1_another.changes fi testrun - -C main include test package_1.0-1_another.changes 3<onlyonearch-1.0/debian/control < Standards-Version: 0.0 Package: onearch Architecture: abacus Description: some test-onlyonearch . END cat >onlyonearch-1.0/debian/changelog < Mon, 01 Jan 1980 01:02:02 +0000 END dpkg-source -b onlyonearch-1.0 mkdir onlyonearch-1.0/debian/tmp mkdir onlyonearch-1.0/debian/tmp/DEBIAN mkdir -p onlyonearch-1.0/debian/tmp/usr/bin touch onlyonearch-1.0/debian/tmp/usr/bin/program cd onlyonearch-1.0 dpkg-gencontrol -ponearch dpkg --build debian/tmp .. cd .. rm -r onlyonearch-1.0 testrun - --delete includedsc test onlyonearch_1.0-1.dsc 3<onlyarchall-1.0/debian/control < Standards-Version: 0.0 Package: archall Architecture: all Description: some test-arch all package . END cat >onlyarchall-1.0/debian/changelog < Mon, 01 Jan 1980 01:02:02 +0000 END dpkg-source -b onlyarchall-1.0 mkdir onlyarchall-1.0/debian/tmp mkdir onlyarchall-1.0/debian/tmp/DEBIAN mkdir -p onlyarchall-1.0/debian/tmp/usr/bin touch onlyarchall-1.0/debian/tmp/usr/bin/program cd onlyarchall-1.0 dpkg-gencontrol -parchall dpkg --build debian/tmp .. cd .. rm -r onlyarchall-1.0 testrun - --delete includedsc test onlyarchall_1.0-1.dsc 3<allandany-1.0/debian/control < Standards-Version: 0.0 Package: allpart Architecture: all Description: some test-arch all package . Package: anypart Architecture: any Description: some test-arch any package . END cat >allandany-1.0/debian/changelog < Mon, 01 Jan 1980 01:02:02 +0000 END dpkg-source -b allandany-1.0 mkdir allandany-1.0/debian/tmp mkdir allandany-1.0/debian/tmp/DEBIAN mkdir -p allandany-1.0/debian/tmp/usr/bin touch allandany-1.0/debian/tmp/usr/bin/program cd allandany-1.0 dpkg-gencontrol -panypart dpkg --build debian/tmp .. cd .. rm -r allandany-1.0/debian/tmp mkdir allandany-1.0/debian/tmp mkdir allandany-1.0/debian/tmp/DEBIAN mkdir -p allandany-1.0/debian/tmp/usr/share touch allandany-1.0/debian/tmp/usr/share/data cd allandany-1.0 dpkg-gencontrol -pallpart dpkg --build debian/tmp .. cd .. echo "There was nothing to do on this architecture!" > allandany_1.0-1_another.log echo "allandany_1.0-1_another.log - -" > allandany-1.0/debian/files cd allandany-1.0 dpkg-genchanges -B > ../allandany_1.0-1_another.changes cd .. rm -r allandany-1.0 # work around dpkg-dev 1.18.15+ no longer adding Architectures of log files: if ! grep -q -s '^Architecture:' allandany_1.0-1_another.changes ; then sed -e 's/^Version:/Architecture: another\n&/' -i allandany_1.0-1_another.changes fi testrun - --delete includedsc test allandany_1.0-1.dsc 3<anyonly-1.0/debian/control < Standards-Version: 0.0 Package: anyonly Architecture: any Description: some test-arch any package . END cat >anyonly-1.0/debian/changelog < Mon, 01 Jan 1980 01:02:02 +0000 END dpkg-source -b anyonly-1.0 mkdir anyonly-1.0/debian/tmp mkdir anyonly-1.0/debian/tmp/DEBIAN mkdir -p anyonly-1.0/debian/tmp/usr/bin touch anyonly-1.0/debian/tmp/usr/bin/program cd anyonly-1.0 dpkg-gencontrol -panyonly dpkg --build debian/tmp .. cd .. rm -r anyonly-1.0 testrun - --delete includedsc test anyonly_1.0-1.dsc 3<linuxwildcard-1.0/debian/control < Standards-Version: 0.0 Package: linuxwildcard Architecture: linux-any Description: some test-arch any package . END cat >linuxwildcard-1.0/debian/changelog < Mon, 01 Jan 1980 01:02:02 +0000 END dpkg-source -b linuxwildcard-1.0 rm -r linuxwildcard-1.0 mkdir kfreebsdwildcard-1.0 mkdir kfreebsdwildcard-1.0/debian cat >kfreebsdwildcard-1.0/debian/control < Standards-Version: 0.0 Package: kfreebsdwildcard Architecture: kfreebsd-any Description: some test-arch any package . END cat >kfreebsdwildcard-1.0/debian/changelog < Mon, 01 Jan 1980 01:02:02 +0000 END dpkg-source -b kfreebsdwildcard-1.0 rm -r kfreebsdwildcard-1.0 testrun - includedsc oses linuxwildcard_1.0-1.dsc 3<