Skip to content

Commit

Permalink
FreeBSD make uses the target under srcdir [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 13, 2022
1 parent dd5118f commit 751ffb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/ruby_vm/helpers/dumper.rb 100644 → 100755
Expand Up @@ -28,7 +28,7 @@ def new_erb spec
path = Pathname.new(__FILE__)
path = (path.relative_path_from(Pathname.pwd) rescue path).dirname
path += '../views'
path += Pathname.pwd.join(spec).expand_path.to_s.sub("#{@base}/", '')
path += Pathname.pwd.join(File.basename(spec)).expand_path.to_s.sub("#{@base}/", '')
src = path.expand_path.read mode: 'rt:utf-8:utf-8'
rescue Errno::ENOENT
raise "don't know how to generate #{path}"
Expand Down

0 comments on commit 751ffb2

Please sign in to comment.