#!/bin/sh

target_file=debian/targets

awk '/^[a-z0-9]/{print $2}' ${target_file} | sort -u | while read subarch ; do
    case ${subarch} in
        -) package=u-boot ;;
        *) package=u-boot-${subarch} ;;
    esac
    overrides=debian/${package}.lintian-overrides

    cat >${overrides}<<EOF

${package}: description-synopsis-starts-with-article

# Synopsys is the name of a company, not a misspelling.
${package}: spelling-error-in-copyright Synopsys Synopsis
EOF
done

package=u-boot-tools
cat >debian/${package}.lintian-overrides<<EOF
# Synopsys is the name of a company, not a misspelling.
${package}: spelling-error-in-copyright Synopsys Synopsis
EOF
