lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 45b22dd 2/3: Fix defect introduced 20190929T1


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 45b22dd 2/3: Fix defect introduced 20190929T1823Z: capitalization error
Date: Mon, 30 Sep 2019 17:31:23 -0400 (EDT)

branch: master
commit 45b22ddaa87a7a2b7edd1dbe361d83812b0e4f8c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Fix defect introduced 20190929T1823Z: capitalization error
    
    Capitalization matters for xargs arguments:
     -p (prompt) means --interactive
     -P (Parallel) means --max-procs
    Defective commit 38c578cb079 used the lowercase option, but an
    interactive prompt to confirm each of hundreds of commands was
    not wanted in a script intended to run unattended.
    
    The next commit will use long options for xargs throughout lmi.
---
 gwc/develop1.txt | 2 +-
 lmi_setup_43.sh  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 1e15c8b..0c18c26 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -180,7 +180,7 @@ for z in $(git diff HEAD@{1} --name-only) ; do touch 
--reference=/opt/lmi/src/lm
 for z in *(m-1) ; do touch --reference=$z /opt/lmi/free/src/lmi/$z; done
 
   # Alternatively:
-find . -path ./.git -prune -o -type f -print0 | xargs -0 -n 1 -p 0 -i '{}' 
touch '--reference=/opt/lmi/src/lmi/{}' '{}'
+find . -path ./.git -prune -o -type f -print0 | xargs -0 -n 1 -P 0 -i '{}' 
touch '--reference=/opt/lmi/src/lmi/{}' '{}'
 
   # Third screen: only for building and testing
 
diff --git a/lmi_setup_43.sh b/lmi_setup_43.sh
index 6e8c144..b717e15 100755
--- a/lmi_setup_43.sh
+++ b/lmi_setup_43.sh
@@ -92,4 +92,4 @@ cd free/src || { printf 'failed: cd\n'; exit 3; }
 git clone git://git.savannah.nongnu.org/lmi.git
 cd lmi || { printf 'failed: cd\n'; exit 3; }
 find . -path ./.git -prune -o -type f -print0 \
-  | xargs -0 -n 1 -p 0 -i '{}' touch '--reference=/opt/lmi/src/lmi/{}' '{}'
+  | xargs -0 -n 1 -P 0 -i '{}' touch '--reference=/opt/lmi/src/lmi/{}' '{}'



reply via email to

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