version="2.0"
codename="Rigel"
pre1=(
"Package updates:"
"New features:"
"MATE 1.8.x"
)
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