5 srvdir=/srv/dgit.debian.org
6 dgitlive=${DGIT_TEST_INTREE-$srvdir/dgit-live}
7 output=${DGIT_GETSUITES_OUTPUT-$srvdir/data/suites}
9 export PERLLIB="$dgitlive${PERLLIB+:}${PERLLIB}"
11 $dgitlive/dgit archive-api-query /suites | perl -we '
16 die $! if STDIN->error;
17 my $items = decode_json $json;
18 foreach my $item (@$items) {
19 next unless ($item->{archive}//"") eq "ftp-master";
20 next unless ($item->{codename});
21 print $item->{codename}, "\n" or die $!;
23 flush STDOUT or die $!;
26 mv -f $output.new $output