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\n" ' ' printf "%4c$2\n" ' ' printf "%4cFrugalware $_current ($codename) released\n" ' ' printf "%4c$(date -R)\n" ' ' printf "%4c$3\n" ' ' printf "%4c0\n" ' ' printf "%4cannounce the immediate availability of Frugalware $_current, $_addendum

\n" ' ' printf "%4c

Here are some of the major improvements, fixes and updates since $_previous:
\n" ' ' printf "%6c

\n" ' ' printf "%6cPlease refer to the Frugalware Testing ChangeLog for more information.
\n" ' ' printf "%6cDownload for x86_64: See our mirror list. Don't forget to check the integrity of the install images before burning!
\n" ' ' printf "%6cNOTE: Click here to read more about what media you need for the installation.
\n" ' ' printf "%8c]]>\n" ' ' printf "%4c
\n" ' ' printf "%2c
\n" ' ' } if [ -z "$3" ]; then echo "Usage: $0 " exit 1 fi output "$1" "$2" "$3"