#!/bin/sh
# update-vfontcap
# Copyright 2000 Keita Maehara <maehara@debian.org>
# License: GPL

VFONTCAP=/etc/vfontcap
VFONTDIR=/etc/vfont

if [ -f $VFONTCAP ]; then
    mv $VFONTCAP $VFONTCAP.backup
fi
 
cat > $VFONTCAP << EOF
#
# vfontcap: Automatically generated file. Do not edit.
#
EOF

for i in $VFONTDIR/*; do
    if ! echo $i | grep -q '\(\.dpkg-[a-z]*\|~\)$'; then
        cat $i >> $VFONTCAP
    fi
done

if [ -f $VFONTCAP.backup ]; then
    rm $VFONTCAP.backup
fi

exit
