#! /bin/sh
#
# DEB information extraction plugin for the KDiskCat project
#
# (C) 2000 Laszlo Felde <feldelaci@mail.uti.hu>
#

if test ${!#} = "--help"; then 
    echo "KADEdeb 0.1 (C) 2000 Felde Laszlo <feldelaci@mail.uti.hu>"
    echo
    echo "DEB information extraction plugin for the KDiskCat project"
    exit 0
fi

if test ${!#} = "--default"; then
    echo -n "*.deb,*.DEB|"
    exit 0
fi

while read input; do
    dpkg-deb -f "$input" DESCRIPTION VERSION
    echo "|END|"
done