2 echo "fetching list of changelogs"
3 echo "ls ChangeLog-*" |lftp
ftp://www.kernel.org
/pub
/linux
/kernel
/v2.6
/> changes.txt
5 for release
in `seq 16 32`;
7 LATEST
=`grep ChangeLog-2.6.$release changes.txt | sed -e "s/^.*ChangeLog-2.6.$release.//g"| sort -n -r|head -n1`
8 echo "latest patch: 2.6.$release.$LATEST"