#!/bin/sh

print_qiime_config.py -t

echo

echo "Here are the versions of the packages that QIIME depends on as reported by"
echo "the system package manager:"
echo

dpkg -s qiime | perl -ne '/^Depends: (.*)/ &&
  map {s/[ :].*//;
       printf "%-26s: %s", $_, `dpkg -s "$_" | sed -n "/Version:/s/.* //p"`
   }
   grep {! /^lib/}
   sort
   split(/, /,"$1, mothur")' | uniq \
&& { echo ; echo OK ; }
