How do you generate a bootstrap.dat file? [duplicate]

I think it's just a renamed blk0001.dat file, but I can't find any references as to what it actually is other than a "binary blockchain" ....