X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fmk-extra-overrides.sh;h=e331e88eb9535b5cd1a50e01fda9fb83f5335915;hb=5ef4bd176b8e8b9ac2bf66d09db0dfe12281177a;hp=84eb970dab2798cbbb202f800ba75fe46d37a1b1;hpb=14b9aa4836b8a12808121c438b0a4a518f945c3c;p=dak.git diff --git a/scripts/debian/mk-extra-overrides.sh b/scripts/debian/mk-extra-overrides.sh index 84eb970d..e331e88e 100755 --- a/scripts/debian/mk-extra-overrides.sh +++ b/scripts/debian/mk-extra-overrides.sh @@ -4,9 +4,24 @@ # grep -Ev '^[a-z0-9A-Z.+-]+\ Task [a-z0-9:. ,+-]+$' task* x="build-essential tag task" -opath="/org/ftp.debian.org/scripts/override" +opath="/srv/ftp-master.debian.org/scripts/override" +apath="/srv/ftp-master.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