]> Pileus Git - ~andy/fetchmail/blob - upload
Sunil Shetye's latest cleanup patch.
[~andy/fetchmail] / upload
1 #!/bin/sh
2
3 version=`sed -n '/VERSION *= *\(.*\)/s//\1/p' <Makefile`
4 echo "Uploading fetchmail version ${version}"
5
6 if [ $* ]
7 then
8     ../upload $*
9 else
10 keywords="mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL"
11
12 echo "Beginning web upload..."
13 # First, copy to primary website
14 dest=esr@${WWWHOST}:${WWWDIR}/fetchmail
15 scp fetchmail-${version}.tar.gz $dest
16 scp fetchmail-${version}.tar.gz.asc $dest
17 scp fetchmail-FAQ.html $dest
18 scp fetchmail-${version}-1.i386.rpm $dest
19 scp fetchmail-${version}-1.src.rpm $dest
20 scp fetchmail-features.html $dest
21 scp NEWS $dest
22 scp fetchmail-man.html $dest
23 scp design-notes.html $dest
24 scp todo.html $dest
25 scp testservers.html $dest
26 # The following things vary seldom
27 #scp funny.html $dest
28 #scp fetchmail.png $dest
29 #scp bighand.png $dest
30 scp growth.png $dest
31 scp timeseries $dest
32 scp growthplot $dest
33 # The following things vary often
34 scp checksums $dest
35 scp index.html $dest
36 scp history.html $dest
37 echo "Upload to ${WWWVIRTUAL} complete"
38
39 echo "Beginning FTP upload..."
40 lftp <<EOF
41 # Copy to FTP site
42 open $FTPHOST
43 cd $FTPDIR/fetchmail
44 put fetchmail-${version}.tar.gz
45 put fetchmail-${version}-1.i386.rpm
46 put fetchmail-${version}-1.src.rpm
47 close
48 echo "FTP upload complete."
49
50 # Next, upload to Metalab
51 echo "Beginning Metalab upload..."
52 rpm2lsm -k ${keywords} *.rpm >fetchmail.lsm
53 open -u anonymous,esr@thyrsus.com metalab.unc.edu
54 cd incoming/Linux 
55 put fetchmail-${version}.tar.gz
56 put fetchmail.lsm
57 put README -o fetchmail.README 
58 put fetchmail-FAQ.html
59 put fetchmail-${version}-1.i386.rpm
60 put fetchmail-${version}-1.src.rpm
61 close
62 echo "Upload to Metalab complete"
63
64 # Finally, upload the RPMS to Red Hat
65 echo "Beginning Red Hat upload"
66 open incoming.redhat.com
67 cd libc6
68 put fetchmail-${version}-1.i386.rpm
69 put fetchmail-${version}-1.src.rpm
70 close
71 echo "Upload to Red Hat contrib complete"
72
73 EOF
74     echo "fetchmail uploaded"
75 fi