Home | History | Annotate | Line # | Download | only in libfetch
      1 #!/bin/sh
      2 # $NetBSD: errlist.sh,v 1.1.1.4 2009/04/04 23:26:03 joerg Exp $
      3 
      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"
      8 done < $3
      9 
     10 printf "\t{ -1, FETCH_UNKNOWN, \"Unknown $2 error\" }\n"
     11 printf "};\n"
     12