Contents of /branches/mage-next/src/up2date/xorg.sh.in
Parent Directory | Revision Log
Revision 2591 -
(show annotations)
(download)
Tue Mar 4 08:35:27 2014 UTC (10 years, 6 months ago) by niro
File size: 585 byte(s)
Tue Mar 4 08:35:27 2014 UTC (10 years, 6 months ago) by niro
File size: 585 byte(s)
-split function into single includes
1 | updatecmd_xorg() |
2 | { |
3 | local pname=$1 |
4 | local subdir |
5 | local tarballname |
6 | local pcat |
7 | |
8 | [[ -z ${pname} ]] && die "give me a \$PNAME" |
9 | [[ ! -z $2 ]] && archive="$2" |
10 | tarballname="${pname}-" |
11 | if [[ ! -z ${PCAT} ]] |
12 | then |
13 | pcat="${PCAT}" |
14 | else |
15 | pcat="${PCATEGORIE}" |
16 | fi |
17 | subdir="$(echo ${pcat} | sed -e 's:x11-::' -e 's:media-::' -e 's/\(.*\)s$/\1/')" |
18 | [[ ! -z ${UP2SUBDIR} ]] && subdir="${UP2SUBDIR}" |
19 | [[ ! -z ${UP2TARBALL} ]] && tarballname="${UP2TARBALL}" |
20 | |
21 | updatecmd "http://xorg.freedesktop.org/archive/individual/${subdir}/?C=M;O=A" | grep "/${tarballname}" | lasttarball "${archive}" |
22 | } |