lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master bb53dcc 1/3: Add a useful command


From: Greg Chicares
Subject: [lmi-commits] [lmi] master bb53dcc 1/3: Add a useful command
Date: Sun, 26 May 2019 12:02:48 -0400 (EDT)

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

    Add a useful command
---
 gwc/develop1.txt      | 4 ++++
 tabs/2/startup_script | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 377c186..f14280e 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -158,6 +158,10 @@ for z in * ; do [ -f $z ] && ( [ $z -nt 
/opt/lmi/src/lmi/$z ] || [ $z -ot /opt/l
 
 for z in $(git diff address@hidden --name-only) ; do touch 
--reference=/opt/lmi/src/lmi/$z $z; done
 
+  # Alternatively, in source rather than mirror directory, especially
+  # after 'git checkout' to undo local modifications:
+for z in *(m-1) ; do touch --reference=$z /opt/lmi/free/src/lmi/$z; done
+
   # Third screen: only for building and testing
 
 cd /opt/lmi/src/lmi
diff --git a/tabs/2/startup_script b/tabs/2/startup_script
index b7165c5..e68f825 100755
--- a/tabs/2/startup_script
+++ b/tabs/2/startup_script
@@ -4,6 +4,7 @@ a='schroot --chroot=cross-lmi'
 
 b='cd /opt/lmi/src/lmi'
 c='git ls-files --deleted | xargs git checkout --'
+d='for z in *(m-1) ; do touch --reference=$z /opt/lmi/free/src/lmi/$z; done'
 u='eval `ssh-agent`'
 v='ssh-agent $SHELL'
 w='ssh-add ~/.ssh/id_rsa'
@@ -12,6 +13,7 @@ y='ssh-agent -k > /dev/null 2>&1'
 
 print -rs $b ; echo $b ; eval $b
 print -rs $c ; echo $c
+print -rs $d ; echo $d
 # 'ssh-agent' not presently used in chroot:
 #print -rs $u ; echo $u ; eval $u
 #echo $w >/dev/clipboard
@@ -24,6 +26,7 @@ print -rs $c ; echo $c
 unset a
 unset b
 unset c
+unset d
 unset u
 unset v
 unset w



reply via email to

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