mv share/doc/name-version to share/doc/name
Versioned docs don't make sense with our installation pattern
This commit is contained in:
parent
e296c08aee
commit
b1a628cc99
@ -87,9 +87,15 @@ end
|
|||||||
|
|
||||||
# make our code neater
|
# make our code neater
|
||||||
class Pathname
|
class Pathname
|
||||||
def mv dst
|
def mv dst
|
||||||
FileUtils.mv to_s, dst
|
FileUtils.mv to_s, dst
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def rename dst
|
||||||
|
dst=Pathname.new dst
|
||||||
|
dst.unlink if dst.exist?
|
||||||
|
mv dst
|
||||||
|
end
|
||||||
|
|
||||||
def install src
|
def install src
|
||||||
FileUtils.mv src, to_s
|
FileUtils.mv src, to_s
|
||||||
|
|||||||
5
bin/brew
5
bin/brew
@ -219,12 +219,15 @@ begin
|
|||||||
o.brew do
|
o.brew do
|
||||||
if ARGV.include? '--interactive'
|
if ARGV.include? '--interactive'
|
||||||
ohai "Entering interactive mode, type `exit' to return to this shell"
|
ohai "Entering interactive mode, type `exit' to return to this shell"
|
||||||
exec "bash"
|
exec "bash" #TODO why exec?
|
||||||
else
|
else
|
||||||
o.install
|
o.install
|
||||||
['README','ChangeLog','COPYING','COPYRIGHT','AUTHORS'].each do |file|
|
['README','ChangeLog','COPYING','COPYRIGHT','AUTHORS'].each do |file|
|
||||||
FileUtils.cp file, o.prefix if File.file? file
|
FileUtils.cp file, o.prefix if File.file? file
|
||||||
end
|
end
|
||||||
|
#this is common, and we don't want it
|
||||||
|
versioned_docs=o.doc.parent+"#{o.name}-#{o.version}"
|
||||||
|
versioned_docs.rename o.doc if versioned_docs.exist?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
ohai 'Finishing up'
|
ohai 'Finishing up'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user