From 79b9ccd285d54f25d0296c8e18f33bdf34b95c10 Mon Sep 17 00:00:00 2001 From: Andrey Borzenkov Date: Wed, 31 Jan 2001 10:08:14 +0000 Subject: 13412: avoid duplicates in subdirecory list for recursive build --- Src/mkmakemod.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Src/mkmakemod.sh') diff --git a/Src/mkmakemod.sh b/Src/mkmakemod.sh index 98b9199df..aa5f3c0ec 100644 --- a/Src/mkmakemod.sh +++ b/Src/mkmakemod.sh @@ -132,7 +132,13 @@ if $first_stage; then $the_subdir/$lastsub/*) ;; $the_subdir/*/*) lastsub=`echo $modfile | sed 's,^'$the_subdir'/,,;s,/[^/]*$,,'` - all_subdirs="$all_subdirs $lastsub" + case "$all_subdirs" in + *" $lastsub"* ) ;; + *" $lastsub "* ) ;; + * ) + all_subdirs="$all_subdirs $lastsub" + ;; + esac ;; $the_subdir/*) mddname=`echo $modfile | sed 's,^.*/,,;s,\.mdd$,,'` -- cgit 1.4.1