[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 9b9978f 16/18: Avoid 'ls --classify'
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 9b9978f 16/18: Avoid 'ls --classify' |
Date: |
Wed, 29 May 2019 18:49:09 -0400 (EDT) |
branch: master
commit 9b9978fcb6b1c6a7656530f06743010a525a6d66
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Avoid 'ls --classify'
---
GNUmakefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/GNUmakefile b/GNUmakefile
index 8406bca..17a3c17 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -421,7 +421,7 @@ custom_tools:
# Either of these suggests a build failure that may render dependency
# files invalid; 'make clean' should provide symptomatic relief.
#
-# The '$(LS) --classify' test somewhat loosely identifies source files
+# The "find ... '*.sed'" test somewhat loosely identifies source files
# whose executable bit is improperly set. It is properly set iff the
# file starts with a hash-bang; to avoid the cost of opening every
# file, a simple heuristic is used, '*.sh *.sed' being the only files
@@ -451,10 +451,12 @@ check_concinnity: source_clean custom_tools
| $(MD5SUM) --check --quiet || true
@for z in $(build_dir)/*.d; do [ -s $$z ] || echo $$z; done;
@for z in $(build_dir)/*.o; do [ -f $${z%%.o}.d ] || echo $$z; done;
- @$(LS) --classify $(prefascicle_dir)/* \
- | $(SED) -e'/\*$$/!d' -e'/^\.\//!d' -e'/.sh\*$$/d' -e'/.sed\*$$/d' \
+ @find $(prefascicle_dir) -maxdepth 1 -executable -type f \
+ -not -name '*.sh' -not -name '*.sed' \
+ -not -name 'commit-msg' -not -name 'pre-commit' \
| $(SED) -e's/^/Improperly executable: /'
- @find $(prefascicle_dir) -executable -type f -print0 | xargs -0 -n 1 -P
0 ./check_script.sh
+ @find $(prefascicle_dir) -executable -type f -print0 \
+ | xargs -0 -n 1 -P 0 ./check_script.sh
@$(ECHO) " Problems detected by xmllint:"
@for z in $(xml_files); \
do \
- [lmi-commits] [lmi] master 0e9da3a 01/18: Use Ubuntu 18.04 only for WSL, (continued)
- [lmi-commits] [lmi] master 0e9da3a 01/18: Use Ubuntu 18.04 only for WSL, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 66fe46b 03/18: Resolve more shellcheck "SC1117" warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master a4ee62f 07/18: Suppress certain shellcheck warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master b25a732 06/18: Resolve all shellcheck "SC2038" warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master d52c37f 09/18: Resolve a shellcheck "SC2034" warning, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master ee293d1 10/18: Update certain URLs, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 19c0946 13/18: Copy compiler runtime files in one makefile target only, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 3873eb0 15/18: Fix defect committed 20190521T2101: tested 'md5sums' in wrong directory, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master c40f2f8 14/18: Routinely run shellcheck, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master aebe56b 17/18: Don't copy compiler runtime files to build directory, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 9b9978f 16/18: Avoid 'ls --classify',
Greg Chicares <=
- [lmi-commits] [lmi] master f4cb231 08/18: Remove space after '#!', Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master aa29114 12/18: Improve command to copy compiler runtime files, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master f760e3d 11/18: Fix defect introduced 20190426T2304Z: wrong variable used, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master b30b5db 18/18: Make 'custom_tools' when rebuilding from scratch, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 23ef51a 05/18: Resolve a shellcheck "SC2166" warning, Greg Chicares, 2019/05/29