aboutsummaryrefslogtreecommitdiffstats
path: root/upload
blob: 372a27c11757161ca73700b4abe555c87c87f264 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh

version=`sed -n '/VERSION *= *\(.*\)/s//\1/p' <Makefile`
echo "Uploading fetchmail version ${version}"

if [ $* ]
then
    ../upload $*
else
keywords="mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL"

echo "Beginning web upload..."
# First, copy to primary website
dest=esr@${WWWHOST}:${WWWDIR}/fetchmail
scp fetchmail-${version}.tar.gz $dest
scp fetchmail-${version}.tar.gz.asc $dest
scp fetchmail-FAQ.html $dest
scp fetchmail-${version}-1.i386.rpm $dest
scp fetchmail-${version}-1.src.rpm $dest
scp fetchmail-features.html $dest
scp NEWS $dest
scp fetchmail-man.html $dest
scp design-notes.html $dest
scp todo.html $dest
scp testservers.html $dest
# The following things vary seldom
#scp funny.html $dest
#scp fetchmail.png $dest
#scp bighand.png $dest
scp growth.png $dest
scp timeseries $dest
scp growthplot $dest
# The following things vary often
scp checksums $dest
scp index.html $dest
scp history.html $dest
echo "Upload to ${WWWVIRTUAL} complete"

echo "Beginning FTP upload..."
lftp <<EOF
# Copy to FTP site
open $FTPHOST
cd $FTPDIR/fetchmail
put fetchmail-${version}.tar.gz
put fetchmail-${version}-1.i386.rpm
put fetchmail-${version}-1.src.rpm
close
echo "FTP upload complete."

# Next, upload to Metalab
echo "Beginning Metalab upload..."
rpm2lsm -k ${keywords} *.rpm >fetchmail.lsm
open -u anonymous,esr@thyrsus.com metalab.unc.edu
cd incoming/Linux 
put fetchmail-${version}.tar.gz
put fetchmail.lsm
put README -o fetchmail.README 
put fetchmail-FAQ.html
put fetchmail-${version}-1.i386.rpm
put fetchmail-${version}-1.src.rpm
close
echo "Upload to Metalab complete"

# Finally, upload the RPMS to Red Hat
echo "Beginning Red Hat upload"
open incoming.redhat.com
cd libc6
put fetchmail-${version}-1.i386.rpm
put fetchmail-${version}-1.src.rpm
close
echo "Upload to Red Hat contrib complete"

EOF
    echo "fetchmail uploaded"
fi
span class="w"> # Baseline day for the size data was Fri Oct 25 23:02:26 EDT 1996 $jdate -= 297; return($jdate); } open(NEWS, "NEWS"); $release = "unknown"; $date = "unknown"; $jdate = "unknown"; while ($_ = <NEWS>) { my($sum); if (/^%/) { print $_; } elsif (/^fetchmail-([^ ]*) \(([^)]*)\):?/) { $release = $1; $date = $2; $jdate = &day_offset($date); } elsif (/There are ([0-9]*) people on fetchmail-friends and ([0-9]*) on fetchmail-announce/) { $sum = $1 + $2; print "${release}\t$1\t$2\t${sum}\t${jdate}\t${date}\n"; $release = "unknown"; $date = "unknown"; } elsif (/There are ([0-9]*) people on the fetchmail-friends list./) { print "$release\t$1\t0\t$1\t$jdate\t$date\n"; $release = "unknown"; $date = "unknown"; } } # end