lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 5a7e4c1 5/6: Check concinnity of hooks/


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5a7e4c1 5/6: Check concinnity of hooks/
Date: Wed, 22 May 2019 15:27:39 -0400 (EDT)

branch: master
commit 5a7e4c180d328c95cab80a8decae524f8137f884
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Check concinnity of hooks/
    
    Updated copyright notices as required.
---
 gwc/develop2.txt |  2 +-
 hooks/commit-msg |  2 +-
 hooks/pre-commit | 11 ++++++++---
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/gwc/develop2.txt b/gwc/develop2.txt
index 67fd8d3..b6fb180 100644
--- a/gwc/develop2.txt
+++ b/gwc/develop2.txt
@@ -91,7 +91,7 @@ printf "all permissions forced\n"
   # this command shows the same thing, unfiltered so that the diagnostics
   # are easier to understand.
 
-for z in src data graphics test tables; do \
+for z in src data graphics hooks test tables; do \
   make --directory=/opt/lmi/src/lmi --no-print-directory check_concinnity \
   prefascicle_dir=/opt/lmi/proprietary/$z ; done
 
diff --git a/hooks/commit-msg b/hooks/commit-msg
index ef4dcf2..e9a6f6e 100755
--- a/hooks/commit-msg
+++ b/hooks/commit-msg
@@ -2,7 +2,7 @@
 
 # git commit-msg hook
 
-# Copyright (C) 2016, 2017, 2018 Gregory W. Chicares.
+# Copyright (C) 2016, 2017, 2018, 2019 Gregory W. Chicares.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
diff --git a/hooks/pre-commit b/hooks/pre-commit
index b21edf4..94cad53 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -2,7 +2,7 @@
 
 # git pre-commit hook
 
-# Copyright (C) 2016, 2017, 2018 Gregory W. Chicares.
+# Copyright (C) 2016, 2017, 2018, 2019 Gregory W. Chicares.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
@@ -45,6 +45,11 @@ check_concinnity()
     fi
 }
 
-printf "checking..."
-check_concinnity /opt/lmi/src/lmi
+toplevel=$(git rev-parse --show-toplevel)
+
+printf "checking "
+printf "[toplevel]..."
+check_concinnity "$toplevel"
+printf "hooks..."
+check_concinnity "$toplevel/hooks"
 printf "okay\n"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]