#!/bin/bash

# Olivier Thauvin <thauvin@aerov.jussieu.fr
# Build dictionary index for babytrans
# Generate for babytrans package
# $Id$

PATHDIC=/usr/share/babytrans
script_name=`basename $0`

cat > $PATHDIC/dictionary << EOF
# Don't edit this file
# to add a dictionnary create a .template file
# and run $script_name as root

EOF

for template in $PATHDIC/*.template; do
    [ -f "$template" ] || exit 0
    echo "# From $template:" >> $PATHDIC/dictionary
    cat "$template" >> $PATHDIC/dictionary
done
