diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-25 21:35:49 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-25 21:35:49 +0100 |
commit | 6186990d9bcbfe344dd701caef781c4472439d6b (patch) | |
tree | 2c0060c9f3dfc7038404127501649f258281a897 /tools/check_license.rb | |
parent | --profile no longer causes a crash (diff) | |
download | smolbote-6186990d9bcbfe344dd701caef781c4472439d6b.tar.xz |
Updated pre-commit hook
Diffstat (limited to 'tools/check_license.rb')
-rwxr-xr-x | tools/check_license.rb | 22 |
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 |