Magellan Linux

Contents of /branches/mage-next/src/up2date/google.sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2591 - (show annotations) (download)
Tue Mar 4 08:35:27 2014 UTC (10 years, 2 months ago) by niro
File size: 279 byte(s)
-split function into single includes
1 updatecmd_google()
2 {
3 local uri
4 local pname="$1"
5 local archive
6
7 [[ -z ${pname} ]] && die "give me a \$PNAME"
8 [[ ! -z $2 ]] && archive="$2"
9
10 uri="http://code.google.com/p/${pname}/downloads/list"
11 updatecmd --listonly "${uri}" | grep ${pname}- | firsttarball "${archive}"
12 }