#! /bin/sh
# Please send the output to fink-installed-packages@sodan.ecc.u-tokyo.ac.jp
# as the *body*. Do *not* send as the attachment.
#
# Example:
# ./fink-installed-packages.sh |
#   mail fink-installed-packages@sodan.ecc.u-tokyo.ac.jp
#
# If you have any question, mail to the Todai Fink Team:
# fink@sodan.ecc.u-tokyo.ac.jp
set -e
host=`hostname|sed 's/\..*//'`
if test "x$host" = x; then
    echo "Can't get the hostname." >&2
    exit 1
fi
echo "\$\$begin fink-installed-packages $host\$\$"
dpkg-query --show --showformat '[${package},${version},${status}]\n'
echo "\$\$end fink-installed-packages $host\$\$"
