Skip to content
Snippets Groups Projects
Commit 6d1fafae authored by Tim Masliuchenko's avatar Tim Masliuchenko
Browse files

Final tweaks

parent 87f29857
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment