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