Final tweaks
This commit is contained in:
parent
87f29857f0
commit
6d1fafae13
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user