Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 660e83aae1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (14 sloc) 0.438 kb
#!/usr/bin/env ruby -wKU
commands = `/usr/local/bin/cmake --help-command-list`.to_a
commands.shift # Skip version number
constants = []
commands.each do |cmd|
cmd = cmd.strip.upcase
help = `/usr/local/bin/cmake --help-command #{cmd}`
help.scan(/[a-zA-Z_]+\((.+?)\)/m) do |example|
example[0].scan(/[A-Z_]{2,}/) do |constant|
constants << constant
end
end
end
constants.uniq.sort.each { |constant| puts constant }
Jump to Line
Something went wrong with that request. Please try again.