aboutsummaryrefslogtreecommitdiff
path: root/tools/check_license.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check_license.rb')
-rwxr-xr-xtools/check_license.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/check_license.rb b/tools/check_license.rb
deleted file mode 100755
index 66cb0f1..0000000
--- a/tools/check_license.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env ruby
-
-exit_code = 0
-file_names = Dir.glob("**/*.h") + Dir.glob("**/*.cpp")
-
-puts "Running in #{`pwd`}"
-
-# for each item in file_names
-file_names.each do |file_name|
- File.open(file_name) { |file|
- if file.grep(/SPDX-License-Identifier/).empty? then
- puts "Missing or incorrect license header: #{file_name}"
- exit_code = 1
- end
- }
-end
-
-if exit_code == 0 then
- puts "All licenses okay"
-end
-
-exit exit_code