parameters: (outName, components)
docstring: Generates the output file 'outName' out of the Amethyst
      sources in the subdirectories listed in 'components'.
      - outName: File path of the output file.
      - components: List of subdirectories to include in the output.
docstring_summary: Generates the output file 'outName' out of the Amethyst
      sources in the subdirectories listed in 'components'.
      - outName: File path of the output file.
      - components: List of subdirectories to include in the output.
docstring_tokens: Generates the output file outName out of the Amethyst sources in the subdirectories listed in components . - outName : File path of the output file . - components : List of subdirectories to include in the output .
function: def makeHelp(outName, components):
      """Generates the output file 'outName' out of the Amethyst
      sources in the subdirectories listed in 'components'.
      - outName: File path of the output file.
      - components: List of subdirectories to include in the output."""
      
      modes = ['command', 'variable']
  
      outFile = file(outName, 'w')
      print >> outFile, "# Doomsday Help"
      print >> outFile, "# Generated by conhelp.py out of", string.join(components, ', ')
  
      for mode in modes:
          for com in components:
              print >> outFile, "#\n# CONSOLE", mode.upper() + 'S: %s\n#' % com
              path = os.path.join(com, mode)
              for fn in os.listdir(path):
                  if not fn.endswith('.ame'): continue
                  name = fn[:-4]
                  print '- %s %s: %s' % (com, mode, name)
                  print >> outFile, "\n[%s]" % name
              
                  templ = '@require{amestd} @begin\n' + \
                          file(os.path.join(path, fn)).read()
              
                  print >> outFile, amethyst(templ).strip()
function_tokens: def makeHelp ( outName , components ) : modes = [ 'command' , 'variable' ] outFile = file ( outName , 'w' ) print >> outFile , "# Doomsday Help" print >> outFile , "# Generated by conhelp.py out of" , string . join ( components , ', ' ) for mode in modes : for com in components : print >> outFile , "#\n# CONSOLE" , mode . upper ( ) + 'S: %s\n#' % com path = os . path . join ( com , mode ) for fn in os . listdir ( path ) : if not fn . endswith ( '.ame' ) : continue name = fn [ : - 4 ] print '- %s %s: %s' % ( com , mode , name ) print >> outFile , "\n[%s]" % name templ = '@require{amestd} @begin\n' + file ( os . path . join ( path , fn ) ) . read ( ) print >> outFile , amethyst ( templ ) . strip ( )