]> Pileus Git - ~andy/fetchmail/blob - upload
via localhost is gone.
[~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 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
18 scp NEWS $dest
19 scp fetchmail-man.html $dest
20 scp design-notes.html $dest
21 scp todo.html $dest
22 scp testservers.html $dest
23 # The following things vary seldom
24 #scp funny.html $dest
25 #scp fetchmail.png $dest
26 #scp bighand.png $dest
27 scp growth.png $dest
28 scp timeseries $dest
29 scp growthplot $dest
30 # The following things vary often
31 scp checksums $dest
32 scp index.html $dest
33 scp history.html $dest
34 echo "Upload to ${WWWVIRTUAL} complete"
35
36 echo "Beginning FTP upload..."
37 lftp <<EOF
38 # Copy to FTP site
39 open $FTPHOST
40 cd $FTPDIR/fetchmail
41 put fetchmail-${version}.tar.gz
42 put fetchmail-${version}-1.i386.rpm
43 put fetchmail-${version}-1.src.rpm
44 close
45 echo "FTP upload complete."
46
47 # Next, upload to Metalab
48 echo "Beginning Metalab upload..."
49 open -u anonymous,esr@thyrsus.com metalab.unc.edu
50 cd incoming/Linux 
51 put fetchmail-${version}.tar.gz
52 put fetchmail.lsm
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
57 close
58 echo "Upload to Metalab complete"
59
60 # Finally, upload the RPMS to Red Hat
61 echo "Beginning Red Hat upload"
62 open incoming.redhat.com
63 cd libc6
64 put fetchmail-${version}-1.i386.rpm
65 put fetchmail-${version}-1.src.rpm
66 close
67 echo "Upload to Red Hat contrib complete"
68
69 EOF
70     echo "fetchmail uploaded"
71 fi