build_check_rest.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_rest import *
  10. os.chdir(rest_dir)
  11. sys.stdout.write(message_tmpl.substitute(rest_dir=rest_dir))
  12. for cmd in rest_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. )