Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[r13118]: branches / using_qt_opengl / scripts / distro-versions.sh Maximize Restore History

Download this file

distro-versions.sh    132 lines (92 with data), 4.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#!/bin/bash
maxrelease=5
# Ubuntu
ubuntu_package_base='http://packages.ubuntu.com/'
ubuntu_package_path='/sound/rosegarden'
ubuntu_release_url='http://releases.ubuntu.com/'
ubuntu_release_description=`wget -O- "$ubuntu_release_url" 2>/dev/null | grep '<li>' | grep '[0-9] *('`
ubuntu_release_shortnames=`echo "$ubuntu_release_description" | tac | sed 's/^.*(//' | sed 's/ .*//'`
echo '<tr><td>&nbsp;</td></tr>'
echo '<tr>'
echo '<td class="a" align="center" rowspan="'$maxrelease'"><a href="http://www.ubuntu.com/"><img src="http://www.ubuntu.com/themes/ubuntu07/images/ubuntulogo.png" alt="Ubuntu" border="0"></a></td>'
for shortname in $ubuntu_release_shortnames ; do
rv=`wget -O- "$ubuntu_package_base$shortname$ubuntu_package_path" 2>/dev/null | \
grep 'Package: rosegarden' | \
sed 's/^.*1://' | \
sed 's/[^0-9\.].*//' | \
head -1`
[ -z "$rv" ] && continue
longname=`echo "$ubuntu_release_description" | grep "$shortname" | sed 's/^.*Ubuntu //' | sed 's/<.*//'`
echo "</tr><tr><td class=a>&nbsp;Ubuntu $longname&nbsp;</td>"
echo "<td class=a>&nbsp;Rosegarden v$rv&nbsp;</td>"
echo "<td class=a>&nbsp;Community-supported Packages</td>"
done
echo "</tr>"
for x in `seq 1 $maxrelease` ; do echo '<tr></tr>'; done
# Debian
debian_package_url='http://qa.debian.org/madison.php?package=rosegarden&text=on'
echo '<tr><td>&nbsp;</td></tr>'
echo '<tr>'
echo '<td class="b" align="center" rowspan="'$maxrelease'"><a href="http://www.debian.org/"><img src="http://www.debian.org/logos/openlogo-50.png" alt="Debian" border="0"></a></td>'
wget -O- "$debian_package_url" 2>/dev/null | egrep '(all|i386)' | \
awk '{ gsub(".*:","",$3); gsub("-[^-]*$","",$3); print $5 " " $3}' | \
sort --key=2 -rn | fgrep -v 2.1 | fgrep -v m68k | \
while read dv rv; do
if [ -n "$rv" ]; then
dvn=`echo $dv | cut -c1 | tr '[a-z]' '[A-Z]'``echo $dv | cut -c2-`
echo "</tr><tr>"
echo "<td class=b>&nbsp;Debian $dvn&nbsp;</td>"
echo "<td class=b>&nbsp;Rosegarden v$rv&nbsp;</td>"
echo "<td class=b></td>"
fi
done
echo '</tr>'
for x in `seq 1 $maxrelease` ; do echo '<tr></tr>'; done
# OpenSUSE
opensuse_repo_url='http://download.opensuse.org/repositories/multimedia:/apps/'
echo '<tr><td>&nbsp;</td></tr>'
echo '<tr>'
echo '<td class="b" align="center" rowspan="'$maxrelease'"><a href="http://en.opensuse.org/"><img src="http://en.opensuse.org/skins/opensuse/images/common/geeko.jpg" alt="OpenSUSE" border="0"></a></td>'
opensuse_versions=`wget -O- "$opensuse_repo_url" 2>/dev/null | grep 'openSUSE_[0-9]' | sed 's/^.*openSUSE_//' | sed 's/[ <"\/].*//'`
for version in $opensuse_versions; do
rv=`wget -O- "$opensuse_repo_url""openSUSE_$version/src" 2>/dev/null | grep rosegarden4 | sed 's/^.*rosegarden4-//' | sed 's/-.*//' | head -1`
[ -z "$rv" ] && continue
echo "</tr><tr>"
echo "<td class=b>&nbsp;openSUSE $version&nbsp;</td>"
echo "<td class=b>&nbsp;Rosegarden v$rv&nbsp;</td>"
echo "<td class=b>&nbsp;multimedia/apps</td>"
done
echo '</tr>'
for x in `seq 1 $maxrelease` ; do echo '<tr></tr>'; done
# Arch Linux
arch_package_url='http://www.archlinux.org/packages/extra/i686/rosegarden/'
echo '<tr><td>&nbsp;</td></tr>'
echo '<tr>'
echo '<td class="b" align="center" rowspan="'$maxrelease'"><a href="http://www.archlinux.org/"><img src="http://www.archlinux.org/media/titlelogo.png" alt="Arch Linux" width="175" height="51" border="0"></a></td>'
arch_version=`wget -O- "$arch_package_url" 2>/dev/null | grep 'osegarden [0-9]' | head -1 | sed -e 's/^.*rosegarden \([0-9\.]*\).*$/\1/'`
case "$arch_version" in
[0-9]*)
echo '</tr><tr>'
echo "<td class=a>&nbsp;Arch Linux&nbsp;</td>"
echo "<td class=a>&nbsp;Rosegarden v$arch_version&nbsp;</td>"
echo "<td class=a>&nbsp;Extra repository</td>"
;;
esac
echo "</tr>"
for x in `seq 1 $maxrelease` ; do echo '<tr></tr>'; done
# Gentoo
gentoo_package_url='http://gentoo-portage.com/media-sound/rosegarden/'
echo '<tr><td>&nbsp;</td></tr>'
echo '<tr>'
echo '<td class="b" align="center" rowspan="'$maxrelease'"><a href="http://www.gentoo.org/"><img src="http://www.gentoo.org/images/gentoo-new.gif" alt="Gentoo" border="0"></a></td>'
gentoo_version=`wget -O- "$gentoo_package_url" 2>/dev/null | grep 'rosegarden-[0-9]' | head -1 | sed -e 's/^.*rosegarden-\([0-9\.]*\).*$/\1/'`
case "$gentoo_version" in
[0-9]*)
echo '</tr><tr>'
echo "<td class=a>&nbsp;Gentoo&nbsp;</td>"
echo "<td class=a>&nbsp;Rosegarden v$gentoo_version&nbsp;</td>"
echo "<td class=a>&nbsp;Portage</td>"
;;
esac
echo "</tr>"
for x in `seq 1 $maxrelease` ; do echo '<tr></tr>'; done