#! /bin/bash # Update our package lists (Packages and Sources files) if [ ! -d $HOME/.multidistrotools/sid ]; then mdt dist-create sid http://ftp.debian.org/debian unstable main contrib non-free fi if [ ! -d $HOME/.multidistrotools/dapper ]; then mdt dist-create dapper http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse fi mdt dist-apt-get sid update mdt dist-apt-get dapper update # Lists versions in Debian and Ubuntu mdt compare-versions sid dapper > versionslist # Get list of universe and multiverse source packages mdt dist-grep-dctrl-sources dapper -F Section -s Package -n multiverse > multiverse mdt dist-grep-dctrl-sources dapper -F Section -s Package -n universe > universe cat multiverse >> universe # Get lists of source packages for tex, math, and science sections of Debian adn Ubuntu mdt dist-grep-dctrl-sources dapper -n -s Package -F Section -e "tex$" > u_tex mdt dist-grep-dctrl-sources sid -n -s Package -F Section -e "tex$" > d_tex mdt dist-grep-dctrl-sources dapper -n -s Package -F Section math > u_math mdt dist-grep-dctrl-sources sid -n -s Package -F Section math > d_math mdt dist-grep-dctrl-sources dapper -n -s Package -F Section science > u_science mdt dist-grep-dctrl-sources sid -n -s Package -F Section science > d_science # Get a unified list for each section mdt list_union u_tex d_tex > tex mdt list_union u_math d_math > math mdt list_union u_science d_science > science cat tex math science | sort > all mdt filter all < universe | sort > motuscience_packages # Filter this versions list with the list of tex, math, and science sources packages mdt filter tex < versionslist > tex_list mdt filter math < versionslist > math_list mdt filter science < versionslist > science_list cat tex_list math_list science_list | sort > all_list # Generate an HTML report from rubyversionslist mdt versions2html -d -u --titleA Debian --titleB Ubuntu < tex_list > tex_list.html mdt versions2html -d -u --titleA Debian --titleB Ubuntu < math_list > math_list.html mdt versions2html -d -u --titleA Debian --titleB Ubuntu < science_list > science_list.html mdt versions2html -d -u --titleA Debian --titleB Ubuntu < all_list > all_list.html