Final tweaks

This commit is contained in:
Tim Masliuchenko 2019-10-24 09:43:59 +03:00
parent 87f29857f0
commit 6d1fafae13
2 changed files with 3 additions and 6 deletions

View File

@ -71,6 +71,7 @@ module Cask
# targets are created prior to linking.
Pkg,
Binary,
Manpage,
PostflightBlock,
Zap,
].each_with_index.flat_map { |classes, i| [*classes].map { |c| [c, i] } }.to_h

View File

@ -21,12 +21,8 @@ module Cask
super(cask, source)
end
def resolve_target(_target)
config.manpagedir.join("man#{section}", target_name)
end
def target_name
"#{@source.basename(@source.extname)}.#{section}"
def resolve_target(target)
config.manpagedir.join("man#{section}", target)
end
end
end