lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 38c578c 3/4: Coordinate timestamps zshlessly


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 38c578c 3/4: Coordinate timestamps zshlessly
Date: Mon, 30 Sep 2019 11:08:29 -0400 (EDT)

branch: master
commit 38c578cb079032b64eeaf3f2f2ccdb3655ddce8c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Coordinate timestamps zshlessly
    
    Now all 'lmi_setup_*' scripts are POSIX.
---
 gwc/develop1.txt | 3 +++
 lmi_setup_43.sh  | 9 +++------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 47b6b2a..1e15c8b 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -179,6 +179,9 @@ for z in $(git diff HEAD@{1} --name-only) ; do touch 
--reference=/opt/lmi/src/lm
   # after 'git checkout' to undo local modifications:
 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/{}' '{}'
+
   # Third screen: only for building and testing
 
 cd /opt/lmi/src/lmi
diff --git a/lmi_setup_43.sh b/lmi_setup_43.sh
index ea9bcfd..197202c 100755
--- a/lmi_setup_43.sh
+++ b/lmi_setup_43.sh
@@ -1,4 +1,4 @@
-#!/bin/zsh
+#!/bin/sh
 
 # Create a chroot for cross-building "Let me illustrate...".
 #
@@ -91,8 +91,5 @@ mkdir --parents free/src
 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; }
-# shellcheck disable=SC2039
-#   (zsh glob qualifier: GLOB_DOTS)
-for z in **/*(D) ; do touch --reference=/opt/lmi/src/lmi/"$z" "$z"; done 2>&1 
|sed \
-  -e'/\/.git\/FETCH_HEAD[^0-9A-Za-z-]/d' \
-  -e'/\/.git\/hooks\/[a-z-]*\.sample[^0-9A-Za-z-]/d'
+find . -path ./.git -prune -o -type f -print0 \
+  | 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]