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