Annotation of /branches/mage-next/src/up2date/freedesktop.sh.in
Parent Directory | Revision Log
Revision 2591 -
(hide annotations)
(download)
Tue Mar 4 08:35:27 2014 UTC (10 years, 2 months ago) by niro
File size: 461 byte(s)
Tue Mar 4 08:35:27 2014 UTC (10 years, 2 months ago) by niro
File size: 461 byte(s)
-split function into single includes
1 | niro | 2591 | updatecmd_freedesktop() |
2 | { | ||
3 | local pname=$1 | ||
4 | local archive | ||
5 | local subdir | ||
6 | local tarballname | ||
7 | |||
8 | [[ -z ${pname} ]] && die "give me a \$PNAME" | ||
9 | [[ ! -z $2 ]] && archive="$2" | ||
10 | [[ ! -z ${UP2SUBDIR} ]] && subdir="/${UP2SUBDIR}" | ||
11 | tarballname="${pname}" | ||
12 | [[ ! -z ${UP2TARBALL} ]] && tarballname="${UP2TARBALL}" | ||
13 | |||
14 | # exclude rc versions! | ||
15 | updatecmd "http://${pname}.freedesktop.org/releases${subdir}" | grep ${tarballname}- | grep -v rc[0-9] | highesttarball "${archive}" | ||
16 | } |