original_docstring: Main method that reads input file, creates archive file and write
    resource input file.
    
docstring: Main method that reads input file, creates archive file and write
  resource input file.
docstring_tokens: Main method that reads input file creates archive file and write resource input file .
code: def main(options):
    """Main method that reads input file, creates archive file and write
    resource input file.
    """
    current_version = BuildVersion(options.output_dir)
  
    config = Readconfig(options.output_dir, options.input_file, current_version)
  
    (staging_dir, temp_dir) = MakeStagingDirectories(options.output_dir)
  
    prev_version = GetPrevVersion(options.output_dir, temp_dir,
                                  options.last_chrome_installer)
  
    CopyAllFilesToStagingDir(config, options.distribution,
                             staging_dir, options.output_dir)
  
    version_numbers = current_version.split('.')
    current_build_number = version_numbers[2] + '.' + version_numbers[3]
    prev_build_number = ''
    if prev_version:
      version_numbers = prev_version.split('.')
      prev_build_number = version_numbers[2] + '.' + version_numbers[3]
  
    # Name of the archive file built (for example - chrome.7z or
    # patch-<old_version>-<new_version>.7z or patch-<new_version>.7z
    archive_file = CreateArchiveFile(options, staging_dir,
                                     current_build_number, prev_build_number)
  
    setup_file = PrepareSetupExec(options, staging_dir,
                                  current_build_number, prev_build_number)
  
    CreateResourceInputFile(options.output_dir, options.setup_exe_format,
                            archive_file, setup_file)
code_tokens: def main ( options ) : current_version = BuildVersion ( options . output_dir ) config = Readconfig ( options . output_dir , options . input_file , current_version ) ( staging_dir , temp_dir ) = MakeStagingDirectories ( options . output_dir ) prev_version = GetPrevVersion ( options . output_dir , temp_dir , options . last_chrome_installer ) CopyAllFilesToStagingDir ( config , options . distribution , staging_dir , options . output_dir ) version_numbers = current_version . split ( '.' ) current_build_number = version_numbers [ 2 ] + '.' + version_numbers [ 3 ] prev_build_number = '' if prev_version : version_numbers = prev_version . split ( '.' ) prev_build_number = version_numbers [ 2 ] + '.' + version_numbers [ 3 ] archive_file = CreateArchiveFile ( options , staging_dir , current_build_number , prev_build_number ) setup_file = PrepareSetupExec ( options , staging_dir , current_build_number , prev_build_number ) CreateResourceInputFile ( options . output_dir , options . setup_exe_format , archive_file , setup_file )
short_docstring: Main method that reads input file, creates archive file and write
  resource input file.
short_docstring_tokens: Main method that reads input file creates archive file and write resource input file .
comment: """Main method that reads input file, creates archive file and write
    resource input file.
    """$SEP$# Name of the archive file built (for example - chrome.7z or$SEP$# patch-<old_version>-<new_version>.7z or patch-<new_version>.7z