Downcase name when creating new formulae with brew mk

This commit is contained in:
Max Howell 2009-06-20 15:46:31 +01:00
parent 1ddc1b7646
commit 7d56cfb879

View File

@ -263,7 +263,7 @@ begin
/(.*?)[-_.]?#{version}/.match File.basename(url)
raise "Couldn't parse name from #{url}" if $1.nil?
path=$formula+($1+'.rb')
path=$formula+($1.downcase+'.rb')
raise "#{path} already exists!" if File.exist? path
f=File.new path, 'w'