aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-commit9
1 files changed, 8 insertions, 1 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit
index 4cd7aa1..045b2b8 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -4,6 +4,9 @@
# 20260919 bkw: no code changes; update install comments.
# 20261130 bkw: add check for md5sums in the .info file.
+# TODO:
+# - rewrite in perl.
+
# Installation:
# This file is part of sbo-maintainer-tools, which you can get
@@ -102,9 +105,13 @@ EOF
fi
}
+# Note to self: Don't get tempted to add too many checks here. Anything
+# that could possibly be checked by sbolint, should be. The md5sum
+# check can't go in sbolint because it has to be able to look back in
+# the git history.
+
# The fugly grep regex below matches only the actual .info files, named
# category/prgnam/prgnam.info (and not other files named .info).
-
if [ "${MD5OK:-no}" != "yes" ]; then
while read filename; do
check_info_file "$filename"