docs: def generate(directory, outfilename=DEFAULT_BUILDFILE):
      """
      Generate a build-file for quilt build from a directory of
      source files.
      """
      try:
          buildfilepath = generate_build_file(directory, outfilename=outfilename)
      except BuildException as builderror:
          raise CommandException(str(builderror))
  
      print("Generated build-file %s." % (buildfilepath))