#!/bin/bash
case $1 in
libva ) curl -s --url http://www.splitted-desktop.com/~gbeauchesne/ | grep "<p>" | cut -d\> -f3 | head -n4;;
nvidia ) curl -s --url ftp://download.nvidia.com/XFree86/Linux-x86/ | awk '// {print $9}' | sort -nk1 | tail -n1;;
nvnews ) curl -s --url http://www.nvidia.com/object/unix.html | grep "Linux x86/IA32" | sed -e 's/>/ /g' -e 's/</ /g' | awk '{print $10}';;
turbo ) curl -s --url http://sourceforge.net/projects/libjpeg-turbo/files/ | awk '/Download libjpeg-turbo/ {print $2}' | sed 's/.tar.*//g' | cut -d\- -f3;;
deadbeef ) curl -s --url http://sourceforge.net/projects/deadbeef/files/ | grep "Click to download deadbeef" | cut -d\- -f2,3 | sed 's/.tar.*//g' | head -n1;;
imagemagic ) curl -s --url ftp://ftp.imagemagick.org/pub/ImageMagick/ | awk '/tar.xz/ {print $9}' | sed 's/ImageMagick-//g' | sort -nk1 | tail -n1 | sed 's/.tar.xz//g';;
qtcurve-qt4 ) curl -s --url http://kde-look.org/content/show.php?content=40492 | grep Source | tr "<" "\n" | tr -d ")" | awk '/KDE 4/ {print $5}';;
gtk-engines-qtcurve ) curl -s --url http://kde-look.org/content/show.php?content=40492 | grep Source | tr "<" "\n" | tr -d ")"| awk '/Gtk 2/ {print $5}';;
X ) curl -s --url http://cgit.freedesktop.org/xorg/xserver/ | tr " " "\n" | grep zip | sed -e 's/.zip//g' | cut -d"'" -f2 | cut -d"-" -f3 | head -n1;;
chromium ) curl -s --url http://build.chromium.org/official/ | tail -n5 | awk '/tar.bz2/ {print $6}' | cut -d\" -f2 | sed -e 's/.tar.bz2//g' -e 's/chromium-//g';;
esac
реально ли уменьшить сие безобразие? && как?