comparison debian/debian-whitelist.sh @ 2:f6716cb00029

Replace buggy stuff in deb dir, never make phone calls while working
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 14:29:12 +0100
parents
children
comparison
equal deleted inserted replaced
1:9b8d79ac0dc3 2:f6716cb00029
1 #!/bin/bash
2 #
3 # debian-whitelist.sh - get up2date list information from
4 # lists.debian.org
5 #
6 # Copyright (C) 2004 Martin Zobel-Helas <mhelas@helas.net>
7 # and Dan Weber <dan@mirrorlynx.com>
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software Foundation,
21 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #
23
24 if [ -f whitelist.debian ]; then
25 rm -f whitelist.debian
26 fi
27 # set date somewhere in the file to track up2dateness.
28 DATE=`date +%c`
29 echo "# last update: $DATE" > whitelist.debian
30
31 for t in `wget -q http://lists.debian.org/completeindex.html -O- | grep "<li><a" | sed -re 's/<[^>]+>//g'`;do
32 if [ $t != "whitelist" ]; then
33 echo "ok env_from $t@lists.debian.org" >> whitelist.debian
34 fi
35 done
36
37 # return a true value
38 exit 0
39