From c634aa0072fa618e53101f704b2dd648737f5c55 Mon Sep 17 00:00:00 2001 From: Ryan Govostes Date: Sat, 21 Nov 2020 19:19:05 -0500 Subject: [PATCH] Link libiio tools into bin directory --- libiio.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libiio.rb b/libiio.rb index c7cf4dc..82cc672 100644 --- a/libiio.rb +++ b/libiio.rb @@ -23,9 +23,13 @@ def install system "make" system "make", "install" end + + Dir.glob("#{frameworks}/iio.framework/Tools/*").each do |exec| + bin.install_symlink exec if File.executable?(exec) + end end test do - system "#{frameworks}/iio.framework/Tools/iio_info", "--help" + system "#{bin}/iio_info", "--help" end end