hotspot/make/windows/create_obj_files.sh
changeset 7451 cc12e11b1e07
parent 7397 5b173b4ca846
child 8114 340b5b8b544b
--- a/hotspot/make/windows/create_obj_files.sh	Tue Dec 14 15:10:52 2010 -0500
+++ b/hotspot/make/windows/create_obj_files.sh	Wed Dec 15 05:43:54 2010 -0800
@@ -107,8 +107,12 @@
 	"x86_64") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_32*" ;;
 esac
 
+# Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 function findsrc {
-    $FIND ${1} \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) | sed 's/.*\/\(.*\)/\1/';
+    $FIND ${1}/. ! -name . -prune \
+		-a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
+		-a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) \
+		| sed 's/.*\/\(.*\)/\1/';
 }
 
 Src_Files=