1、fork homebrew
2、git clone https://github.com/{yourname}/homebrew.git
3、如果用网页版编辑可以跳过。修改采用Sublime Text3作为编辑器,export HOMEBREW_EDITOR='/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'
4、以tomcat为例,brew edit tomcat,一般只需要修改前几行中的url,mirror和sha256,url和mirror从发行软件的
页可以看到,其中mirror要是可以直接下载的链接,sha256是下载文件的sha256值,我们可以先下载mirror中的这个文件,然后用shasum -a 256 [/downfile]计算文件的sha256值。
5、
git commit -a -m 'update tomcat {version}'git push origin master
网页版提交pull request