mirror of
https://github.com/boostorg/hana.git
synced 2026-01-24 05:52:14 +00:00
13 lines
337 B
Ruby
Executable File
13 lines
337 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require 'pathname'
|
|
|
|
|
|
current_file, = Pathname.new(ARGV[0])
|
|
project_path = Pathname.getwd
|
|
relative = current_file.relative_path_from(project_path)
|
|
target = relative.sub_ext('').to_s.gsub('/', '.')
|
|
executable = project_path + 'build' + relative.to_s.split('/')[0] + target
|
|
|
|
`make -C build #{target} && #{executable}`
|