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-FAQ.html $dest
15 scp fetchmail-${version}-1.i386.rpm $dest
16 scp fetchmail-${version}-1.src.rpm $dest
17 scp fetchmail-features.html $dest
19 scp fetchmail-man.html $dest
20 scp design-notes.html $dest
22 scp testservers.html $dest
23 # The following things vary seldom
25 #scp fetchmail.png $dest
26 #scp bighand.png $dest
30 # The following things vary often
33 scp history.html $dest
34 echo "Upload to ${WWWVIRTUAL} complete"
36 echo "Beginning FTP upload..."
41 put fetchmail-${version}.tar.gz
42 put fetchmail-${version}-1.i386.rpm
43 put fetchmail-${version}-1.src.rpm
45 echo "FTP upload complete."
47 # Next, upload to Metalab
48 echo "Beginning Metalab upload..."
49 open -u anonymous,esr@thyrsus.com metalab.unc.edu
51 put fetchmail-${version}.tar.gz
53 put README -o fetchmail.README
54 put fetchmail-FAQ.html
55 put fetchmail-${version}-1.i386.rpm
56 put fetchmail-${version}-1.src.rpm
58 echo "Upload to Metalab complete"
60 # Finally, upload the RPMS to Red Hat
61 echo "Beginning Red Hat upload"
62 open incoming.redhat.com
64 put fetchmail-${version}-1.i386.rpm
65 put fetchmail-${version}-1.src.rpm
67 echo "Upload to Red Hat contrib complete"
70 echo "fetchmail uploaded"