build_check.py 539 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python3
  2. # checks for HTML files missing DESCRIPTION section
  3. # (C) 2003-2009 Markus Neteler and the GRASS Development Team
  4. # Authors:
  5. # Markus Neteler
  6. # Glynn Clements
  7. import sys
  8. import os
  9. from build_html import *
  10. os.chdir(html_dir)
  11. sys.stdout.write(message_tmpl.substitute(html_dir=html_dir))
  12. for cmd in html_files("*"):
  13. if "DESCRIPTION" not in read_file(cmd):
  14. sys.stdout.write("%s\n" % cmd[:-5])
  15. sys.stdout.write(
  16. r"""
  17. ----------------------------------------------------------------------
  18. """
  19. )