about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2001-01-31 10:08:14 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2001-01-31 10:08:14 +0000
commit79b9ccd285d54f25d0296c8e18f33bdf34b95c10 (patch)
tree1c8ca412f2e027efbcc54d809b975c5dc1019da6
parent2708badb165913f126716ff4a9e9e29da00c6575 (diff)
downloadzsh-79b9ccd285d54f25d0296c8e18f33bdf34b95c10.tar.gz
zsh-79b9ccd285d54f25d0296c8e18f33bdf34b95c10.tar.xz
zsh-79b9ccd285d54f25d0296c8e18f33bdf34b95c10.zip
13412: avoid duplicates in subdirecory list for recursive build
-rw-r--r--ChangeLog5
-rw-r--r--Src/mkmakemod.sh8
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ddcd15554..9142942e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-31  Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
+
+	* 13412: Src/mkmakemod.sh: avoid duplicate subdirectories in
+	recursive build
+
 2001-01-29  Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
 
 	* unposted: ChangeLog: typo in previous commit message
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$,,'`