diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-20 13:59:12 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-20 13:59:12 +0100 |
commit | f84f7bf1b35efa793cb3ff893a97e8b65982c01b (patch) | |
tree | dd7f3d665b417d57a9cc232c0b9b5083b0139c42 /tools/hooks/pre-commit.rb | |
parent | Added comments to PKGBUILD (diff) | |
download | smolbote-f84f7bf1b35efa793cb3ff893a97e8b65982c01b.tar.xz |
Fixed repo location in license headers
Diffstat (limited to 'tools/hooks/pre-commit.rb')
-rwxr-xr-x | tools/hooks/pre-commit.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/hooks/pre-commit.rb b/tools/hooks/pre-commit.rb deleted file mode 100755 index 825a851..0000000 --- a/tools/hooks/pre-commit.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -result = 0 -files = Dir.glob("src/**/*.h") + Dir.glob("src/**/*.cpp") + Dir.glob("lib/**/*.h") + Dir.glob("lib/**/*.cpp") - -puts "pre-commit: #{`pwd`}" - -puts 'Checking licenses...' -files.each { |name| - File.open(name) { |file| - if file.grep(/SPDX-License-Identifier/).empty? then - puts "Missing or incorrect license header: #{name}" - result = 1 - end - } -} - -puts "pre-commit exit(#{result})" -exit result |