Automate the preparation step for a new release
Automate the preparation step for a new release

Summary: Added a script that prepares the repo for facebook's new rocksdb release, which will automatically do some necessary work to make sure this repo is ready for 3rdparty release.

Test Plan:
Run this script and observed:

* new version was created (both in local and remote repo) as a git tag.
* build_version.cc was updated
* build_detect_platform was changed so that it won't create any new change.

Reviewers: haobo, dhruba, sdong, igor

CC: leveldb

Differential Revision: https://reviews.facebook.net/D15003

facebook/rocksdb,wskplho/rocksdb,JackLian/rocksdb,msb-at-yahoo/rocksdb,ylong/rocksdb,virtdb/rocksdb,siddhartharay007/rocksdb,amyvmiwei/rocksdb,vashstorm/rocksdb,wlqGit/rocksdb,alihalabyah/rocksdb,makelivedotnet/rocksdb,geraldoandradee/rocksdb,norton/rocksdb,amyvmiwei/rocksdb,rDSN-Projects/rocksdb.replicated,OverlordQ/rocksdb,zhangpng/rocksdb,luckywhu/rocksdb,ryneli/rocksdb,bbiao/rocksdb,rDSN-Projects/rocksdb.replicated,makelivedotnet/rocksdb,tsheasha/rocksdb,JoeWoo/rocksdb,Andymic/rocksdb,biddyweb/rocksdb,kaschaeffer/rocksdb,rDSN-Projects/rocksdb.replicated,facebook/rocksdb,biddyweb/rocksdb,kaschaeffer/rocksdb,jalexanderqed/rocksdb,Vaisman/rocksdb,lgscofield/rocksdb,norton/rocksdb,Applied-Duality/rocksdb,tschottdorf/rocksdb,fengshao0907/rocksdb,makelivedotnet/rocksdb,tschottdorf/rocksdb,SunguckLee/RocksDB,tschottdorf/rocksdb,Applied-Duality/rocksdb,skunkwerks/rocksdb,virtdb/rocksdb,bbiao/rocksdb,Vaisman/rocksdb,makelivedotnet/rocksdb,dkorolev/rocksdb,dkorolev/rocksdb,virtdb/rocksdb,wenduo/rocksdb,wskplho/rocksdb,bbiao/rocksdb,luckywhu/rocksdb,wenduo/rocksdb,RyanTech/rocksdb,sorphi/rocksdb,fengshao0907/rocksdb,skunkwerks/rocksdb,ylong/rocksdb,fengshao0907/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,hobinyoon/rocksdb,wat-ze-hex/rocksdb,ryneli/rocksdb,Andymic/rocksdb,zhangpng/rocksdb,sorphi/rocksdb,mbarbon/rocksdb,norton/rocksdb,Applied-Duality/rocksdb,tizzybec/rocksdb,vmx/rocksdb,facebook/rocksdb,skunkwerks/rocksdb,Andymic/rocksdb,siddhartharay007/rocksdb,caijieming-baidu/rocksdb,flabby/rocksdb,geraldoandradee/rocksdb,anagav/rocksdb,norton/rocksdb,amyvmiwei/rocksdb,alihalabyah/rocksdb,makelivedotnet/rocksdb,tizzybec/rocksdb,hobinyoon/rocksdb,mbarbon/rocksdb,JohnPJenkins/rocksdb,Andymic/rocksdb,alihalabyah/rocksdb,mbarbon/rocksdb,alihalabyah/rocksdb,fengshao0907/rocksdb,IMCG/RcoksDB,luckywhu/rocksdb,temicai/rocksdb,rDSN-Projects/rocksdb.replicated,wat-ze-hex/rocksdb,kaschaeffer/rocksdb,NickCis/rocksdb,sorphi/rocksdb,Vaisman/rocksdb,caijieming-baidu/rocksdb,caijieming-baidu/rocksdb,RyanTech/rocksdb,norton/rocksdb,temicai/rocksdb,lgscofield/rocksdb,flabby/rocksdb,virtdb/rocksdb,msb-at-yahoo/rocksdb,Vaisman/rocksdb,tizzybec/rocksdb,IMCG/RcoksDB,facebook/rocksdb,bbiao/rocksdb,vmx/rocksdb,Vaisman/rocksdb,zhangpng/rocksdb,RyanTech/rocksdb,vmx/rocksdb,vashstorm/rocksdb,facebook/rocksdb,zhangpng/rocksdb,lgscofield/rocksdb,vashstorm/rocksdb,tsheasha/rocksdb,wenduo/rocksdb,OverlordQ/rocksdb,JohnPJenkins/rocksdb,NickCis/rocksdb,wlqGit/rocksdb,luckywhu/rocksdb,tizzybec/rocksdb,IMCG/RcoksDB,tsheasha/rocksdb,ylong/rocksdb,kaschaeffer/rocksdb,vashstorm/rocksdb,IMCG/RcoksDB,lgscofield/rocksdb,JohnPJenkins/rocksdb,siddhartharay007/rocksdb,JoeWoo/rocksdb,amyvmiwei/rocksdb,anagav/rocksdb,mbarbon/rocksdb,NickCis/rocksdb,sorphi/rocksdb,siddhartharay007/rocksdb,Andymic/rocksdb,mbarbon/rocksdb,vmx/rocksdb,lgscofield/rocksdb,OverlordQ/rocksdb,geraldoandradee/rocksdb,NickCis/rocksdb,temicai/rocksdb,sorphi/rocksdb,JackLian/rocksdb,kaschaeffer/rocksdb,wlqGit/rocksdb,IMCG/RcoksDB,JoeWoo/rocksdb,wat-ze-hex/rocksdb,skunkwerks/rocksdb,dkorolev/rocksdb,lgscofield/rocksdb,SunguckLee/RocksDB,caijieming-baidu/rocksdb,IMCG/RcoksDB,ylong/rocksdb,Applied-Duality/rocksdb,mbarbon/rocksdb,wlqGit/rocksdb,dkorolev/rocksdb,anagav/rocksdb,tsheasha/rocksdb,wat-ze-hex/rocksdb,facebook/rocksdb,wat-ze-hex/rocksdb,jalexanderqed/rocksdb,zhangpng/rocksdb,JohnPJenkins/rocksdb,dkorolev/rocksdb,facebook/rocksdb,mbarbon/rocksdb,siddhartharay007/rocksdb,lgscofield/rocksdb,JohnPJenkins/rocksdb,zhangpng/rocksdb,ylong/rocksdb,OverlordQ/rocksdb,wskplho/rocksdb,bbiao/rocksdb,wskplho/rocksdb,fengshao0907/rocksdb,wat-ze-hex/rocksdb,hobinyoon/rocksdb,flabby/rocksdb,ylong/rocksdb,SunguckLee/RocksDB,tschottdorf/rocksdb,ryneli/rocksdb,fengshao0907/rocksdb,geraldoandradee/rocksdb,SunguckLee/RocksDB,Andymic/rocksdb,wat-ze-hex/rocksdb,SunguckLee/RocksDB,JoeWoo/rocksdb,msb-at-yahoo/rocksdb,norton/rocksdb,wenduo/rocksdb,JohnPJenkins/rocksdb,RyanTech/rocksdb,SunguckLee/RocksDB,NickCis/rocksdb,hobinyoon/rocksdb,wlqGit/rocksdb,jalexanderqed/rocksdb,ryneli/rocksdb,jalexanderqed/rocksdb,temicai/rocksdb,rDSN-Projects/rocksdb.replicated,flabby/rocksdb,amyvmiwei/rocksdb,fengshao0907/rocksdb,norton/rocksdb,tizzybec/rocksdb,vmx/rocksdb,vmx/rocksdb,temicai/rocksdb,tsheasha/rocksdb,tschottdorf/rocksdb,JackLian/rocksdb,Vaisman/rocksdb,NickCis/rocksdb,JoeWoo/rocksdb,wskplho/rocksdb,wlqGit/rocksdb,makelivedotnet/rocksdb,ryneli/rocksdb,jalexanderqed/rocksdb,vashstorm/rocksdb,sorphi/rocksdb,msb-at-yahoo/rocksdb,zhangpng/rocksdb,rDSN-Projects/rocksdb.replicated,tsheasha/rocksdb,flabby/rocksdb,dkorolev/rocksdb,bbiao/rocksdb,virtdb/rocksdb,geraldoandradee/rocksdb,hobinyoon/rocksdb,tsheasha/rocksdb,JoeWoo/rocksdb,amyvmiwei/rocksdb,biddyweb/rocksdb,flabby/rocksdb,hobinyoon/rocksdb,luckywhu/rocksdb,dkorolev/rocksdb,Applied-Duality/rocksdb,luckywhu/rocksdb,JohnPJenkins/rocksdb,facebook/rocksdb,biddyweb/rocksdb,virtdb/rocksdb,norton/rocksdb,flabby/rocksdb,skunkwerks/rocksdb,luckywhu/rocksdb,tizzybec/rocksdb,ryneli/rocksdb,wskplho/rocksdb,anagav/rocksdb,caijieming-baidu/rocksdb,temicai/rocksdb,skunkwerks/rocksdb,JackLian/rocksdb,wat-ze-hex/rocksdb,RyanTech/rocksdb,wenduo/rocksdb,alihalabyah/rocksdb,OverlordQ/rocksdb,alihalabyah/rocksdb,tizzybec/rocksdb,JackLian/rocksdb,temicai/rocksdb,anagav/rocksdb,IMCG/RcoksDB,ryneli/rocksdb,anagav/rocksdb,RyanTech/rocksdb,wlqGit/rocksdb,OverlordQ/rocksdb,rDSN-Projects/rocksdb.replicated,NickCis/rocksdb,wenduo/rocksdb,vashstorm/rocksdb,kaschaeffer/rocksdb,vmx/rocksdb,wenduo/rocksdb,ylong/rocksdb,anagav/rocksdb,amyvmiwei/rocksdb,JackLian/rocksdb,JoeWoo/rocksdb,SunguckLee/RocksDB,siddhartharay007/rocksdb,Applied-Duality/rocksdb,RyanTech/rocksdb,msb-at-yahoo/rocksdb,kaschaeffer/rocksdb,vashstorm/rocksdb,makelivedotnet/rocksdb,caijieming-baidu/rocksdb,biddyweb/rocksdb,skunkwerks/rocksdb,vmx/rocksdb,biddyweb/rocksdb,jalexanderqed/rocksdb,virtdb/rocksdb,biddyweb/rocksdb,caijieming-baidu/rocksdb,geraldoandradee/rocksdb,geraldoandradee/rocksdb,Andymic/rocksdb,jalexanderqed/rocksdb,Applied-Duality/rocksdb,Andymic/rocksdb,siddhartharay007/rocksdb,tsheasha/rocksdb,sorphi/rocksdb,JackLian/rocksdb,alihalabyah/rocksdb,Vaisman/rocksdb,OverlordQ/rocksdb,bbiao/rocksdb,wenduo/rocksdb,wskplho/rocksdb,tschottdorf/rocksdb,hobinyoon/rocksdb,hobinyoon/rocksdb,msb-at-yahoo/rocksdb