1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-08 09:41:14 +02:00

13412: avoid duplicates in subdirecory list for recursive build

This commit is contained in:
Andrey Borzenkov 2001-01-31 10:08:14 +00:00
parent 2708badb16
commit 79b9ccd285
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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$,,'`