User: scop
Date: 05/10/26 16:16:50
Modified: packages/xemacs-packages/xemacs-base ChangeLog compile.el
Log:
Better non-"GNU" find+xargs compatibility
<1130097813.4920.96.camel(a)localhost.localdomain>
Revision Changes Path
1.172 +7 -0 XEmacs/packages/xemacs-packages/xemacs-base/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/xemacs-base/ChangeLog,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -p -r1.171 -r1.172
--- ChangeLog 2005/10/12 08:14:19 1.171
+++ ChangeLog 2005/10/26 14:16:50 1.172
@@ -1,3 +1,10 @@
+2005-10-23 Ville Skyttä <scop(a)xemacs.org>
+
+ * compile.el (grep-find-use-xargs): Test "GNU" compatibility of
+ xargs in addition to find, and fall back to using generic
+ find+xargs if the latter is available. Thanks to Karl Janmar for
+ the initial implementation.
+
2005-10-12 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 1.99 released.
1.36 +7 -4 XEmacs/packages/xemacs-packages/xemacs-base/compile.el
Index: compile.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/xemacs-base/compile.el,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -p -r1.35 -r1.36
--- compile.el 2005/07/23 19:16:50 1.35
+++ compile.el 2005/10/26 14:16:50 1.36
@@ -545,10 +545,13 @@ Otherwise, it kills it without asking."
"The system null device.")
(defvar grep-find-use-xargs
- (if (equal (call-process "find" nil nil nil
- grep-null-device "-print0")
- 0)
- 'gnu)
+ ;; XEmacs change: test xargs compatibility too, revert to non-print0 xargs
+ ;; if any xargs is available.
+ (if (and
+ (equal (call-process "find" nil nil nil grep-null-device
"-print0") 0)
+ (equal (call-process "xargs" nil nil nil "-0"
"-e") 0))
+ 'gnu
+ (equal (call-process "xargs") 0))
"Whether \\[grep-find] uses the `xargs' utility by default.
If nil, it uses `find -exec'; if `gnu', it uses `find -print0' and `xargs
-0';
Show replies by date