changeset 14381:6359f8b57ad2

maint: avoid any CDPATH issue * Makefile (sc_cpp_indent_check): Anchor cd argument. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Tue, 22 Feb 2011 08:28:31 -0700
parents 5cee7a3cd6ca
children c19d2aef45e7
files ChangeLog Makefile
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-02-22  Eric Blake  <eblake@redhat.com>
 
+	maint: avoid any CDPATH issue
+	* Makefile (sc_cpp_indent_check): Anchor cd argument.
+
 	maint: adjust cpp indentation for my modules, as well
 	* Makefile (sc_cpp_indent_check): Add my name.
 	* lib/fbufmode.c: Filter through cppi.
--- a/Makefile
+++ b/Makefile
@@ -45,11 +45,11 @@
 		 exit 1; } || :;					\
 	else :; fi
 
-# Verify that certain (for now, only Jim Meyering's) lib/**.c files
-# are consistently cpp indented.
+# Verify that certain (for now, only Jim Meyering and Eric Blake's)
+# lib/**.c files are consistently cpp indented.
 sc_cpp_indent_check:
 	./gnulib-tool --extract-filelist \
-            $$(cd modules; grep -ilrE '(meyering|blake)' .) \
+            $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \
           | sort -u \
           | grep 'lib/.*\.c$$' \
           | grep -v '/getloadavg\.c$$' \