2 # $NetBSD: errlist.sh,v 1.2 2008/10/06 12:58:29 joerg Exp $
4 printf "static struct fetcherr $1[] = {\n"
5 while read code
type msg
; do
6 [ "${code}" = "#" ] && continue
7 printf "\t{ ${code}, FETCH_${type}, \"${msg}\" },\n"
10 printf "\t{ -1, FETCH_UNKNOWN, \"Unknown $2 error\" }\n"