Created
June 2, 2009 15:43
-
-
Save dmichael/122313 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sndfile | |
begin | |
helper = File.join(root, 'win32', 'sndfile-info.exe') | |
`#{helper} --version` | |
rescue Exception => e | |
puts e.inspect | |
begin | |
helper = File.join(root, 'osx', 'sndfile-info') | |
`#{helper} --version` | |
rescue | |
begin | |
helper = File.join(root, 'linux', 'sndfile-info') | |
`#{helper} --version` | |
rescue | |
helper = nil | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment