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

Contents of /trunk/Mix2.0/getlist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 200 - (show annotations) (download)
Wed Aug 28 20:06:48 2002 UTC (10 years, 8 months ago) by rabbi
File size: 779 byte(s)
Initial revision
1 #!/bin/sh
2 # $Id: getlist,v 1.1 2002/08/28 20:06:49 rabbi Exp $
3
4 echo "Getting mixmaster list. Please wait ..."
5
6 for LIST in mix.list type2.list pubring.mix
7 do
8 rm -f $LIST.tmp
9 for URL in `grep "^$LIST " urls | sed 's/^.* //'`
10 do
11 if [ ! -f $LIST.tmp ]
12 then
13 if echo $URL | grep '^finger:' >/dev/null
14 then
15 finger `echo $URL | sed 's/finger://'` | grep -v '^\[.*\]' >$LIST.tmp
16 else
17 lynx -dump $URL >$LIST.tmp
18 fi
19 if [ "$LIST" = "mix.list" ]
20 then
21 PATTERN="^--------------------------------------------$"
22 else
23 PATTERN=" [0-9a-f]* 2"
24 fi
25 if grep "$PATTERN" $LIST.tmp >/dev/null
26 then
27 echo "Got $LIST from $URL."
28 else
29 rm -f $LIST.tmp
30 fi
31 fi
32 done
33 if [ -f $LIST.tmp ]
34 then
35 mv $LIST.tmp $LIST
36 else
37 echo "Could not get $LIST."
38 fi
39 done

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5