File: update

package info (click to toggle)
bind9 1%3A9.3.4-2etch6
  • links: PTS, VCS
  • area: main
  • in suites: etch
  • size: 24,476 kB
  • ctags: 22,776
  • sloc: ansic: 222,420; sh: 20,927; xml: 7,441; makefile: 3,681; perl: 3,026; cpp: 1,764; tcl: 842; python: 77
file content (46 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
commit=
for i
do
	z=`expr "$i" : 'http://www.ietf.org/internet-drafts/\(.*\)'`
	if test -n "$z"
	then
		i="$z"
	fi
	if test -f "$i"
	then
		continue
	fi
	pat=`echo "$i" | sed 's/...txt/??.txt/'`
	old=`echo $pat 2> /dev/null`
	if test "X$old" != "X$pat"
	then
		newer=0
		for j in $old
		do
			if test $j ">" $i
			then
				 newer=1
			fi
		done
		if test $newer = 1
		then
			continue;
		fi
	fi
	if fetch "http://www.ietf.org/internet-drafts/$i" 
	then
		cvs add "$i" 
		if test "X$old" != "X$pat"
		then
			rm $old
			cvs delete $old
			commit="$commit $old"
		fi
		commit="$commit $i"
	fi
done
if test -n "$commit"
then
	cvs commit -m "new draft" $commit
fi