#!/bin/sh set -e for CODENAMES in \ engywuck_fuchur \ engywuck-backports_fuchur-backports \ fuchur_engywuck \ fuchur-backports_engywuck-backports \ graograman_fuchur \ graograman-backports_fuchur-backports do TARGET="$(echo ${CODENAMES} | awk -F_ '{ print $1 }')" SOURCE="$(echo ${CODENAMES} | awk -F_ '{ print $2 }')" echo "###############################################################################" echo "${TARGET} hints" echo "###############################################################################" PACKAGES="$(cd /srv/git/progress-linux.org/packages/${SOURCE} && ls -d */)" for PACKAGE in ${PACKAGES} do PACKAGE="$(basename ${PACKAGE})" if [ ! -e "/srv/git/progress-linux.org/packages/${TARGET}/${PACKAGE}" ] then case "${TARGET}" in engywuck) case "${PACKAGE}" in browserpass) # no modification in the newer package in the old distribution required - ignore continue ;; progress-linux-metapackages) # package already included in engywuck-backports continue ;; esac ;; engywuck-backports) case "${PACKAGE}" in pass-tomb|password-store) # no modification in the newer package in the old distribution required - ignore continue ;; dnsperf|icingaweb2-module-generictts|icingaweb2-module-graphite|icingaweb2-module-idoreports|icingaweb2-module-incubator|icingaweb2-module-metapackages|icingaweb2-module-reporting|icingaweb2-module-toplevelview|icingaweb2-module-x509|iredis|litecli|monitoring-plugins-systemd|pgcli|postgresql-14|ptpython) # package not in debian bullseye - ignore continue ;; ck|libgcrypt20|cli-helpers|libgpg-error|llvm-toolchain-12|llvm-toolchain-13|pendulum|pytzdata) # build-depends of package not in debian bullseye - ignore continue ;; esac ;; fuchur) case "${PACKAGE}" in mdadm|mycli) # no modification in the newer package in the old distribution required - ignore continue ;; linux-latest|mariadb-10.3|postgresql-11) # package not in debian bullseye - ignore continue ;; esac ;; esac case "${SOURCE}" in *-backports) # version check DISTRIBUTION="${TARGET}" PARENT_DISTRIBUTION="$(echo ${DISTRIBUTION} | awk -F- '{ print $1 }')" if [ ! -e upstream.${DISTRIBUTION}.sources ] || [ ! -e upstream.${PARENT_DISTRIBUTION}.sources ] then echo "no indices.. running update first.." ./update.${DISTRIBUTION} fi DISTRIBUTION_VERSION="$(sed -n "/^Package: ${PACKAGE}$/,/^Version:/p" upstream.${DISTRIBUTION}.sources | awk '/^Version: / { print $2 }' | sort -rV | head -n1)" PARENT_VERSION="$(sed -n "/^Package: ${PACKAGE}$/,/^Version:/p" upstream.${PARENT_DISTRIBUTION}.sources | awk '/^Version: / { print $2 }' | sort -rV | head -n1)" if [ -n "${PARENT_VERSION}" ] && dpkg --compare-versions ${PARENT_VERSION} ge ${DISTRIBUTION_VERSION} then # package has not been updated in "stable", hence no need for "backports" continue fi ;; esac echo "${TARGET}: ${PACKAGE}" fi done echo done