MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / isOpenMS

Function isOpenMS

tools/create_class.rb:49–66  ·  view source on GitHub ↗
(openms_path)

Source from the content-addressed store, hash-verified

47end
48
49def isOpenMS(openms_path)
50 isOpenMS = TRUE
51 if not File.directory?(openms_path)
52 puts "Given path is not a directory. Abort!"
53 isOpenMS = FALSE
54 elsif not File.exist?("#{openms_path}/CMakeLists.txt")
55 puts "Given path is not the OpenMS root. Abort!"
56 isOpenMS = FALSE
57 elsif not File.exist?("#{openms_path}/src/openms/source/")
58 puts "Given path is not the OpenMS root. Abort!"
59 isOpenMS = FALSE
60 elsif not File.exist?("#{openms_path}/src/openms/include/OpenMS/")
61 puts "Given path is not the OpenMS root. Abort!"
62 isOpenMS = FALSE
63 end
64
65 return isOpenMS
66end
67
68def libExists(openms_path, lib_name)
69 libExists = TRUE

Callers 1

create_class.rbFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected