def METHOD_NAME(dumpfile: str) -> None:
    system("rm -rf sitemaps sitemaps_data.txt*; mkdir sitemaps")
    log("processing the dump")
    rows = process_dump(dumpfile)
    write_tsv("sitemaps_data.txt", rows)
    log("sorting sitemaps_data.txt")
    # use half of system of 3GB whichever is smaller
    sort_mem = min(system_memory() / 2, 3072)
    system("sort -S%dM sitemaps_data.txt > sitemaps_data.txt.sorted" % sort_mem)
    log("generating sitemaps")
    generate_sitemaps("sitemaps_data.txt.sorted")
    generate_siteindex()
    log("done")