3 # regexp to test if a file is okay:
4 # grep -Ev '^[a-z0-9A-Z.+-]+\ Task [a-z0-9:. ,+-]+$' task*
6 x="build-essential tag task"
7 opath="/srv/ftp-master.debian.org/scripts/override"
8 apath="/srv/ftp-master.debian.org/ftp/dists"
10 if [ ! -d "$apath" ]; then
11 echo "$0: invalid path to archive" >&2
13 elif [ ! -L "$apath/testing" ]; then
14 echo "$0: symlink for testing suite does not exist >&2"
18 codename_testing="$(basename "$(readlink "$apath/testing")")"
19 if [ -z "$codename_testing" ] || [ ! -d "$apath/$codename_testing" ]; then
20 echo "$0: invalid codename for testing suite ('$codename_testing')" >&2
24 for s in "$codename_testing" sid; do
25 for c in main contrib non-free; do
26 echo "Making $opath/override.$s.extra.$c"
27 if [ "$c" = "main" ]; then
33 if [ -e "$t$c2" ]; then cat $t$c2; fi
34 if [ -e "$t.$s$c2" ]; then cat $t.$s$c2; fi
35 done | sort > $opath/override.$s.extra.$c