3 version=`sed -n '/VERSION *= *\(.*\)/s//\1/p' <Makefile`
4 echo "Uploading fetchmail version ${version}"
10 keywords="mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL"
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
22 scp fetchmail-man.html $dest
23 scp design-notes.html $dest
25 scp testservers.html $dest
26 # The following things vary seldom
28 #scp fetchmail.png $dest
29 #scp bighand.png $dest
33 # The following things vary often
36 scp history.html $dest
37 echo "Upload to ${WWWVIRTUAL} complete"
39 echo "Beginning FTP upload..."
44 put fetchmail-${version}.tar.gz
45 put fetchmail-${version}-1.i386.rpm
46 put fetchmail-${version}-1.src.rpm
48 echo "FTP upload complete."
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
55 put fetchmail-${version}.tar.gz
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
62 echo "Upload to Metalab complete"
64 # Finally, upload the RPMS to Red Hat
65 echo "Beginning Red Hat upload"
66 open incoming.redhat.com
68 put fetchmail-${version}-1.i386.rpm
69 put fetchmail-${version}-1.src.rpm
71 echo "Upload to Red Hat contrib complete"
74 echo "fetchmail uploaded"