(openms_path, lib_name)
| 66 | end |
| 67 | |
| 68 | def libExists(openms_path, lib_name) |
| 69 | libExists = TRUE |
| 70 | |
| 71 | if not File.directory?("#{openms_path}/src/#{lib_name}") |
| 72 | puts "The given lib #{lib_name} doesn't exist. Abort!" |
| 73 | libExists = FALSE |
| 74 | elsif not File.exist?("#{openms_path}/src/#{lib_name}/CMakeLists.txt") |
| 75 | puts "The given lib #{lib_name} is not a valid OpenMS sub-lib. Abort!" |
| 76 | libExists = FALSE |
| 77 | end |
| 78 | |
| 79 | return libExists |
| 80 | end |
| 81 | |
| 82 | def getLicense(openms_path) |
| 83 | license = File.read("#{openms_path}/LICENSE") |