Fixing build issue on newer linux and alos issue with newer Ruby

This commit is contained in:
Wolfgang Wedelich-John committed 2024-09-10 12:58:09 +02:00
1 parent 9f918d1ae9
commit 8b887b2380
2 files changed
+6 -5

No files matched your search

+5 -5
View File
@@ -51,15 +51,15 @@ end
desc 'Build sigar extension'
task :build do
in_ext()
unless File.exists? "Makefile"
unless File.exist? "Makefile"
unless system("ruby extconf.rb")
STDERR.puts "Failed to configure"
break
next
end
end
unless system(MAKE)
STDERR.puts 'Failed to ' + MAKE
break
next
end
end
@@ -75,13 +75,13 @@ end
desc 'Clean sigar extension'
task :clean do
in_ext()
system(MAKE + ' clean') if File.exists? "Makefile"
system(MAKE + ' clean') if File.exist? "Makefile"
end
desc 'Dist Clean sigar extension'
task :distclean do
in_ext()
system(MAKE + ' distclean') if File.exists? "Makefile"
system(MAKE + ' distclean') if File.exist? "Makefile"
end
desc 'Run sigar examples (test)'