lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master db7cb049 4/4: Run pre-commit commands in para


From: Greg Chicares
Subject: [lmi-commits] [lmi] master db7cb049 4/4: Run pre-commit commands in parallel
Date: Sun, 14 Aug 2022 13:31:11 -0400 (EDT)

branch: master
commit db7cb0499db39162193e130e050ac87fe4801b9e
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Run pre-commit commands in parallel
---
 hooks/pre-commit | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hooks/pre-commit b/hooks/pre-commit
index 328a72f5..3e3de6cf 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -25,13 +25,16 @@ set -e
 
 check_concinnity()
 {
+    coefficiency=${coefficiency:-"--jobs=$(nproc)"}
     make \
+      "$coefficiency" \
       LMI_COMPILER=gcc \
       LMI_TRIPLET=x86_64-pc-linux-gnu \
       custom_tools \
       --directory=/opt/lmi/src/lmi >/dev/null 2>&1
     output=$( \
         make \
+          "$coefficiency" \
           LMI_COMPILER=gcc \
           LMI_TRIPLET=x86_64-pc-linux-gnu \
           prefascicle_dir="$1" \



reply via email to

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