lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 5ec1b0c 1/4: Make a commonly-used command muc


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5ec1b0c 1/4: Make a commonly-used command much less clunky
Date: Sun, 10 Sep 2017 18:17:13 -0400 (EDT)

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

    Make a commonly-used command much less clunky
---
 gwc/develop1.txt | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 9a1b3be..1a2d3d8 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -99,13 +99,14 @@ cvs -z3 update -l lmi
 
   # Set mirror timestamps to match working directory's
   #
-  # This is slow, so consider specifying the names of changed files
-  # instead of using '*' at the beginning
-  #
   # ...for git:
 
 for z in * ; do [ -f $z ] && ( [ $z -nt /opt/lmi/src/lmi/$z ] || [ $z -ot 
/opt/lmi/src/lmi/$z ] ) && touch --reference=/opt/lmi/src/lmi/$z $z; done
 
+  # But that's slow, so specify the files to change, thus:
+
+for z in $(git diff HEAD^ --name-only) ; do touch 
--reference=/opt/lmi/src/lmi/$z $z; done
+
   # Third screen: only for building and testing
 
 cd /opt/lmi/src/lmi



reply via email to

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