[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f8f5ccf 1/2: Synchronize files most recently
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f8f5ccf 1/2: Synchronize files most recently git-pulled to local mirror |
Date: |
Thu, 2 Nov 2017 11:43:58 -0400 (EDT) |
branch: master
commit f8f5ccf006df066fac40344e055a607d62a4f404
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Synchronize files most recently git-pulled to local mirror
---
gwc/develop1.txt | 5 ++---
tabs/1/startup_script | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 3c4e406..4da6b74 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -103,10 +103,9 @@ cvs -z3 update -l lmi
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
- # (adjusting the '~5' if fewer or more commits have been made):
+ # But that's slow, so touch only files changed since the last pull:
-for z in $(git diff HEAD~5 --name-only) ; do touch
--reference=/opt/lmi/src/lmi/$z $z; done
+for z in $(git diff address@hidden --name-only) ; do touch
--reference=/opt/lmi/src/lmi/$z $z; done
# Third screen: only for building and testing
diff --git a/tabs/1/startup_script b/tabs/1/startup_script
index 7c22d93..e834a66 100755
--- a/tabs/1/startup_script
+++ b/tabs/1/startup_script
@@ -5,7 +5,7 @@ a='schroot --chroot=cross-lmi'
b='cd /opt/lmi/free/src/lmi'
c='git remote -v update'
d='git pull'
-e='for z in $(git diff HEAD~5 --name-only) ; do touch
--reference=/opt/lmi/src/lmi/$z $z; done'
+e='for z in $(git diff address@hidden --name-only) ; do touch
--reference=/opt/lmi/src/lmi/$z $z; done'
print -rs $b ; echo $b ; eval $b
print -rs $c ; echo $c ; eval $c