From: Joerg Jaspert Date: Sat, 8 Aug 2009 18:18:07 +0000 (+0200) Subject: mk_extra_overrides X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67ff849234971d9e457f04e04dc6e6ea52c4fb2;p=dak mk_extra_overrides and use an improved version provided from Frans Pop. Signed-off-by: Joerg Jaspert --- diff --git a/scripts/debian/mk-extra-overrides.sh b/scripts/debian/mk-extra-overrides.sh old mode 100755 new mode 100644 index 84eb970d..4b9cff6a --- a/scripts/debian/mk-extra-overrides.sh +++ b/scripts/debian/mk-extra-overrides.sh @@ -5,8 +5,23 @@ x="build-essential tag task" opath="/org/ftp.debian.org/scripts/override" +apath="/org/ftp.debian.org/ftp/dists" -for s in squeeze sid; do +if [ ! -d "$apath" ]; then + echo "$0: invalid path to archive" >&2 + exit 1 +elif [ ! -L "$apath/testing" ]; then + echo "$0: symlink for testing suite does not exist >&2" + exit 1 +fi + +codename_testing="$(basename "$(readlink "$apath/testing")")" +if [ -z "$codename_testing" ] || [ ! -d "$apath/$codename_testing" ]; then + echo "$0: invalid codename for testing suite ('$codename_testing')" >&2 + exit 1 +fi + +for s in "$codename_testing" sid; do for c in main contrib non-free; do echo "Making $opath/override.$s.extra.$c" if [ "$c" = "main" ]; then