(making dirs and links): If we already made subdirs
for a dir foo and foo turns out to be a symlink outside /usr/include,
after we have made a dir for it in ./root/, make similar subdirs there.
From-SVN: r3091
dirname=`echo $dirname | sed -e 's|[^/]*/||'`
done
fi
+ # Duplicate directory structure created in ${LIB}/$file in new
+ # root area.
+ for file2 in $files; do
+ case $file2 in
+ $file/.*)
+ ;;
+ *)
+ dupdir=${LIB}/root$x/`echo $file2 | sed -n "s|^${file}/||p"`
+ echo "Duplicating ${file}'s ${dupdir}"
+ if [ -d ${dupdir} ]
+ then true
+ else
+ mkdir ${dupdir}
+ fi
+ ;;
+ esac
+ done
rm -fr ${LIB}/$file > /dev/null 2>&1
ln -s ${LIB}/root$x ${LIB}/$file > /dev/null 2>&1
treetops="$treetops $x ${LIB}/root$x"