lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 9f2184d3 1/9: Record some handy commands


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9f2184d3 1/9: Record some handy commands
Date: Tue, 28 Jun 2022 22:26:46 -0400 (EDT)

branch: master
commit 9f2184d3388ea908bccf3a41056cc4b11ac071b2
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Record some handy commands
---
 gwc/develop2.txt | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gwc/develop2.txt b/gwc/develop2.txt
index 33b2f52e..0d34bbd1 100644
--- a/gwc/develop2.txt
+++ b/gwc/develop2.txt
@@ -71,6 +71,37 @@ git bundle create /srv/cache_for_lmi/blessed/$(date -u 
+'%Y%m%dT%H%MZ')-catchup.
 
 cp -ia src/* /opt/lmi/src/products/src
 
+  # Synchronize origin on one machine with multiple chroots
+
+  # Create a bare repository on the host. Use that as 'origin' for
+  # the local repository in each chroot (which already identity-mounts
+  # the 'origin' directory). When a bundle is received, update it like
+  # this...
+
+cd /srv/cache_for_lmi/blessed/proprietary
+git fetch ../whatever.bundle master:master
+
+  # ...because 'git pull' can't be used in a bare repository. Then,
+  # 'git pull' in each chroot will DTRT.
+
+  # Compare files against proprietary repository
+
+  # 'meld' is arguably less clunky than 'netrw'. It's not installed
+  # in chroots by default because it's easy enough, and more flexible,
+  # to run it on the host.
+
+  # Compare source files
+
+meld /srv/chroot/lmi_bookworm_5/opt/lmi/src/products/src 
/srv/chroot/lmi_bookworm_5/opt/lmi/proprietary/src &
+
+  # Compare data files
+
+meld /srv/chroot/lmi_bookworm_5/opt/lmi/data 
/srv/chroot/lmi_bookworm_5/opt/lmi/proprietary/data &
+
+  # Compare system-test files
+
+meld /srv/chroot/lmi_bookworm_5/opt/lmi/test 
/srv/chroot/lmi_bookworm_5/opt/lmi/proprietary/test &
+
   # Whenever a rate table changes, regenerate the binary database
 
 cd /opt/lmi/data



reply via email to

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