#!/bin/sh
usage="\
usage: ptuxmanifest\n\
\n\
With no args, take a manifest of the running system.\n\
"

fmt='${Package} ${Version} ${Architecture} [${db:Status-Abbrev}]\n'

if [ $# = 0 ]; then
	dpkg-query --show --showformat="$fmt" | sort
else
	echo $usage
fi
