3 version=`sed -n '/VERSION *= *\(.*\)/s//\1/p' <Makefile`
4 echo "Uploading fetchmail version ${version}"
10 echo "Beginning web upload..."
11 # First, copy to primary website
12 dest=esr@${WWWHOST}:${WWWDIR}/fetchmail
13 scp fetchmail-${version}.tar.gz $dest
14 scp fetchmail-${version}.tar.gz.asc $dest
15 scp fetchmail-FAQ.html $dest
16 scp fetchmail-${version}-1.i386.rpm $dest
17 scp fetchmail-${version}-1.src.rpm $dest
18 scp fetchmail-features.html $dest
20 scp fetchmail-man.html $dest
21 scp design-notes.html $dest
23 scp testservers.html $dest
24 # The following things vary seldom
26 #scp fetchmail.png $dest
27 #scp bighand.png $dest
31 # The following things vary often
34 scp history.html $dest
35 echo "Upload to ${WWWVIRTUAL} complete"
37 echo "Beginning FTP upload..."
42 put fetchmail-${version}.tar.gz
43 put fetchmail-${version}-1.i386.rpm
44 put fetchmail-${version}-1.src.rpm
46 echo "FTP upload complete."
48 # Next, upload to Metalab
49 echo "Beginning Metalab upload..."
50 open -u anonymous,esr@thyrsus.com metalab.unc.edu
52 put fetchmail-${version}.tar.gz
54 put README -o fetchmail.README
55 put fetchmail-FAQ.html
56 put fetchmail-${version}-1.i386.rpm
57 put fetchmail-${version}-1.src.rpm
59 echo "Upload to Metalab complete"
61 # Finally, upload the RPMS to Red Hat
62 echo "Beginning Red Hat upload"
63 open incoming.redhat.com
65 put fetchmail-${version}-1.i386.rpm
66 put fetchmail-${version}-1.src.rpm
68 echo "Upload to Red Hat contrib complete"
71 echo "fetchmail uploaded"