3 # Gnucomo package parameter report.
5 # Create a list of packages and patches on a Debian Linux system
6 # that can be read by the Gnucomo input program, gcm_input.
10 HOST=`hostname --fqdn`
13 echo "<?xml version='1.0'?>"
14 echo "<gcmt:message xmlns:gcmt='http://gnucomo.org/transport/'>"
16 echo " <gcmt:messagetype>package list</gcmt:messagetype>"
17 echo " <gcmt:hostname>$HOST</gcmt:hostname>"
18 echo " <gcmt:time>$TIME</gcmt:time>"
19 echo " </gcmt:header>"
22 echo " <gcmt:parameters gcmt:class='package'>"
27 dpkg -l | grep '^ii' | sed -e 's/&/&/' | while read FLAGS PACKAGE VERSION DESCRIPTION
29 echo "<gcmt:parameter name='$PACKAGE'>"
30 echo " <gcmt:description>$DESCRIPTION</gcmt:description>"
31 echo " <gcmt:property name='version'>$VERSION</gcmt:property>"
32 echo "</gcmt:parameter>"
36 echo " </gcmt:parameters>"
38 echo "</gcmt:message>"