svn commit: trunk/uClibc/extra/scripts

vda at uclibc.org vda at uclibc.org
Wed Apr 30 04:02:50 UTC 2008


Author: vda
Date: 2008-04-29 21:02:50 -0700 (Tue, 29 Apr 2008)
New Revision: 21901

Log:
install_headers: properly quote things



Modified:
   trunk/uClibc/extra/scripts/install_headers.sh


Changeset:
Modified: trunk/uClibc/extra/scripts/install_headers.sh
===================================================================
--- trunk/uClibc/extra/scripts/install_headers.sh	2008-04-30 01:37:04 UTC (rev 21900)
+++ trunk/uClibc/extra/scripts/install_headers.sh	2008-04-30 04:02:50 UTC (rev 21901)
@@ -59,10 +59,11 @@
 	echo "Check KERNEL_HEADERS= in your .config file."
 	exit 1
 fi
-# Do the copying only if src and dst dirs are not the same
+# Do the copying only if src and dst dirs are not the same.
 # Be thorough: do not settle just for textual compare,
-# and guard against "pwd" being handled as shell builtin
-if test `(cd "$KERNEL_HEADERS"; env pwd)` != `(cd "$2"; env pwd)`; then
+# and guard against "pwd" being handled as shell builtin.
+# Double quoting looks weird, but it works (even bbox ash too).
+if test "`(cd "$KERNEL_HEADERS"; env pwd)`" != "`(cd "$2"; env pwd)`"; then
 	# NB: source or target files and directories may be symlinks,
 	# and for all we know, good reasons.
 	# We must work correctly in these cases. This includes "do not replace




More information about the uClibc-cvs mailing list