]> Pileus Git - ~andy/fetchmail/blob - upload
error -> report, third stage.
[~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     lftp <<EOF
11 # First, copy to primary website
12 open ${WWWHOST}
13 cd ${WWWDIR}/fetchmail
14 put fetchmail-${version}.tar.gz
15 put fetchmail-FAQ.html
16 put fetchmail-${version}-1.i386.rpm
17 put fetchmail-${version}-1.src.rpm
18 put fetchmail-features.html
19 put NEWS
20 put design-notes.html
21 #put funny.html
22 #put fetchmail.gif
23 #put bighand.gif
24 put index.html
25 close
26 echo "Upload to tuxedo complete"
27
28 # Next, upload to the ftp site
29 open locke.ccil.org
30 cd ~ftp/pub/esr/fetchmail
31 put fetchmail-${version}.tar.gz
32 put fetchmail-${version}-1.i386.rpm
33 put fetchmail-${version}-1.src.rpm
34 put README
35 put FAQ
36 put FEATURES
37 close
38 echo "Upload to locke complete"
39
40 # Next, upload to Metalab
41 open -u anonymous,esr@thyrsus.com metalab.unc.edu
42 cd incoming/Linux 
43 put fetchmail-${version}.tar.gz
44 put fetchmail.lsm
45 put README -o fetchmail.README 
46 put fetchmail-FAQ.html
47 put fetchmail-${version}-1.i386.rpm
48 put fetchmail-${version}-1.src.rpm
49 close
50 echo "Upload to Metalab complete"
51
52 # Finally, upload the RPMS to Red Hat
53 open incoming.redhat.com
54 cd libc6
55 put fetchmail-${version}-1.i386.rpm
56 put fetchmail-${version}-1.src.rpm
57 close
58 echo "Upload to Red Hat contrib complete"
59
60 EOF
61     echo "fetchmail uploaded"
62 fi