aboutsummaryrefslogtreecommitdiffstats
path: root/vcs-tools/fetchmail.authors
blob: 2ad0ab31a0a47f7e50000f10edeb16c178b0c5d4 (plain)
1
2
3
4
5
6
m-a Matthias Andree <matthias.andree@gmx.de>
esr Eric S. Raymond <esr@thyrsus.com>
yangyanl Yangyan Li <yangyan.lee@gmail.com>
mojmir Mojmir Svoboda <mojmir.svoboda@2kczech.com>
bob Graham Wilson <graham@mknod.org>
rfunk Rob Funk <rfunk@funknet.net>
font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/bash 
RH=ftp.ccil.org
p=`\
echo dir /pub/esr/fetchmail/f\*src.rpm \
   | ftp $RH \
   | grep /pub/esr/fetchmail/fetchmail-[45] \
   | tail -1`
#p='-rw-r--r-- 1 23 wheel 478424 Dec 18 03:54 /pub/esr/fetchmail/fetchmail-4.7.1-1.src.rpm'
#echo $p | sed -e "s=^.^/pub=pub="
p1=`echo $p | sed -e "s=^.*/pub=pub="`
#echo $p1
#basename  $p1
#dirname $p1
d=`dirname $p1`
f=`basename $p1`
cd /work/incoming
email=$LOGNAME\@`hostname`
ftp -n <<ZZ
open $RH
user anonymous $email
cd /$d
get $f
bye
ZZ
rpm -K $f >/dev/null 2>&1 \
   || {
         rpm -K $f 2>&1 | mail $email -s "error getting $f"
         exit 
      }
rpm --rebuild  $f 2>&1 |\
   mail $email -s "Rebuilding $f"