lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 4b9e89f 1/4: Add commands to force correct pe


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4b9e89f 1/4: Add commands to force correct permissions
Date: Sat, 11 Nov 2017 18:29:33 -0500 (EST)

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

    Add commands to force correct permissions
    
    Cygwin and msw often incorrectly set execute permissions on files that
    should not be executable. When these incorrect permissions creep into
    the repository, correcting them is an unwelcome chore. Listed a set of
    commands that automate this cleanup.
---
 gwc/develop2.txt | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gwc/develop2.txt b/gwc/develop2.txt
index 0d8dca2..eb22d72 100644
--- a/gwc/develop2.txt
+++ b/gwc/develop2.txt
@@ -11,7 +11,20 @@ git clone file:///opt/lmi/blessed/proprietary
 
   # Create a bundle to share by email
 
-  # Make some changes, then test concinnity before every commit
+  # Make some changes, then run both the following sets of commands
+  # before each and every commit:
+
+  # (1) force permissions
+
+cd /opt/lmi/proprietary
+printf "forcing correct permissions "
+  for d in src data test tables; do (\
+       printf "$d..." \
+    && find ./$d -maxdepth 1 -type f -not -name '*.sh' -not -name '*.sed' | 
xargs chmod -x \
+  )done; \
+printf "all permissions forced\n"
+
+  # (2) test concinnity
   # (a pre-commit hook shows these commands' output, filtered)
 
 cd /opt/lmi/proprietary/data/



reply via email to

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