You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chkdoc 888B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ECODE=0
  2. BABELDOC=${BABELDOC:-~/src/babelweb}
  3. checkit() {
  4. export ECODE
  5. TYPE=$1
  6. STY=$2
  7. DIR=${2}s
  8. if ! grep -q $TYPE $BABELDOC/capabilities.html $BABELDOC/capabilities.inc
  9. then
  10. echo $STY $TYPE is not documented in capabilities.html.
  11. ECODE=1
  12. fi
  13. if ! grep -qi $TYPE $BABELDOC/changes*.html
  14. then
  15. echo $STY $TYPE is not documented in changes.html.
  16. ECODE=1
  17. fi
  18. DOCF=xmldoc/$DIR/${TYPE}.xml
  19. if ! test -f $DOCF ;
  20. then
  21. echo $STY $TYPE is not documented in $DOCF
  22. ECODE=1
  23. fi
  24. }
  25. ./gpsbabel -^ |
  26. while read FMT
  27. do
  28. set -- $FMT
  29. TYPE=$1
  30. checkit $TYPE format
  31. done
  32. ./gpsbabel -% |
  33. while read FMT
  34. do
  35. set -- $FMT
  36. TYPE=$1
  37. checkit $TYPE filter
  38. done
  39. #
  40. # See if they're in testo.
  41. #
  42. ./gpsbabel -^2 |
  43. while read FMT
  44. do
  45. set -- $FMT
  46. case $1 in
  47. file)
  48. TYPE=$3
  49. if ! grep -qi "$TYPE" testo
  50. then
  51. echo $STY $TYPE is not in testo.
  52. ECODE=1
  53. fi
  54. esac
  55. done
  56. exit $ECODE