version="1.8" codename="Cinna" pre1=( "Package updates:" "Kernel 3.5.4" "GCC 4.7.2" "GRUB 2.00" "systemd 189" "KDE 4.9.1" "New features:" "none" ) pre2=( "Package updates:" "Kernel 3.6.6" "XOrg Server 1.13.0" "KDE 4.9.3" "GNOME 3.6" "New features:" "cpu scaling on i686 and x86_64 now works out of the box for most hardware" "cpupower is now only needed if you want to change the default behavior" "video decoding acceleration libraries have been enabled in most multimedia programs" ) rc1=( "Package updates:" "Kernel 3.7.1" "Boost 1.50.0" "KDE 4.9.5" "New features:" "mesa 7.11 drivers revived to support hardware that mesa upstream dropped support for" ) 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"