aboutsummaryrefslogtreecommitdiff
path: root/tools/hooks
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-20 13:59:12 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-20 13:59:12 +0100
commitf84f7bf1b35efa793cb3ff893a97e8b65982c01b (patch)
treedd7f3d665b417d57a9cc232c0b9b5083b0139c42 /tools/hooks
parentAdded comments to PKGBUILD (diff)
downloadsmolbote-f84f7bf1b35efa793cb3ff893a97e8b65982c01b.tar.xz
Fixed repo location in license headers
Diffstat (limited to 'tools/hooks')
-rwxr-xr-xtools/hooks/pre-commit.rb19
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