/[pkg-mixmaster]/trunk/Mix2.0/getlist
ViewVC logotype

Contents of /trunk/Mix2.0/getlist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 231 - (hide annotations) (download)
Tue Sep 10 05:25:50 2002 UTC (10 years, 8 months ago) by rabbi
File size: 902 byte(s)
Cleaned up some invalid pointers in BSAFEeay probably resulting from the
switch to OpenSSL.
1 rabbi 200 #!/bin/sh
2 rabbi 231 # $Id: getlist,v 1.2 2002/09/10 05:25:50 rabbi Exp $
3     #
4     # this script has to be started in the directory containing
5     # your remailer file mix.list, type2.list and pubring.mix
6     #
7 rabbi 200
8 rabbi 231
9 rabbi 200 echo "Getting mixmaster list. Please wait ..."
10    
11     for LIST in mix.list type2.list pubring.mix
12     do
13     rm -f $LIST.tmp
14     for URL in `grep "^$LIST " urls | sed 's/^.* //'`
15     do
16     if [ ! -f $LIST.tmp ]
17     then
18     if echo $URL | grep '^finger:' >/dev/null
19     then
20     finger `echo $URL | sed 's/finger://'` | grep -v '^\[.*\]' >$LIST.tmp
21     else
22     lynx -dump $URL >$LIST.tmp
23     fi
24     if [ "$LIST" = "mix.list" ]
25     then
26     PATTERN="^--------------------------------------------$"
27     else
28     PATTERN=" [0-9a-f]* 2"
29     fi
30     if grep "$PATTERN" $LIST.tmp >/dev/null
31     then
32     echo "Got $LIST from $URL."
33     else
34     rm -f $LIST.tmp
35     fi
36     fi
37     done
38     if [ -f $LIST.tmp ]
39     then
40     mv $LIST.tmp $LIST
41     else
42     echo "Could not get $LIST."
43     fi
44     done

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5