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