This really should be documented...and I swear it was, because I found it somewhere to be able to build my version checking utility (itchy for lack of a better name).