version="1.7"
codename="Gaia"
pre1=(
"Package updates:"
"Kernel 3.3"
"KDE 4.8.1"
"LibreOffice 3.5.1"
"Firefox 11.0, Thunderbird 11.0, Seamonkey 2.8"
"New features:"
"Kernel modules are now compressed with XZ"
"GRUB2 has replaced GRUB1"
"Text installer can now install to GPT labels"
"pm-radeon for setting radeon KMS power management at startup"
"phc package family brings experimental CPU undervolting"
)
pre2=(
"Package updates:"
""
"New features:"
""
)
rc1=(
"Package updates:"
""
"New features:"
""
)
rc2=(
"Package updates:"
""
"New features:"
""
)
stable=(
"Package updates:"
""
"New features:"
""
)
# $1 is release
# $2 is news
# $3 is author
output()
{
local _previous
local _current
local _addendum
local _news
local _entry
local _in_group=0
case $1 in
pre1)
_previous="$(echo $version-0.1 | bc)"
_current="${version}pre1"
_addendum="the first technical preview of the upcoming $version stable release."
_news=("${pre1[@]}")
;;
pre2)
_previous="${version}pre1"
_current="${version}pre2"
_addendum="the second technical preview of the upcoming $version stable release."
_news=("${pre2[@]}")
;;
rc1)
_previous="${version}pre2"
_current="${version}rc1"
_addendum="the first candidate of the upcoming $version stable release."
_news=("${rc1[@]}")
;;
rc2)
_previous="${version}rc1"
_current="${version}rc2"
_addendum="the second candidate of the upcoming $version stable release."
_news=("${rc2[@]}")
;;
stable)
;;
esac
printf "%2c
Here are some of the major improvements, fixes and updates since $_previous:
\n" ' '
printf "%6c