diff options
author | Richard Stallman <rms@gnu.org> | 1993-01-05 02:11:29 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-01-05 02:11:29 +0000 |
commit | f744b2cecabb75a587af4254f1e213545b507347 (patch) | |
tree | 67de4f51759b6ae250ca18f47645fe497f5ee639 /gcc | |
parent | d144d602d768c2e9462b9b23a155119b4702c156 (diff) | |
download | gcc-f744b2cecabb75a587af4254f1e213545b507347.zip gcc-f744b2cecabb75a587af4254f1e213545b507347.tar.gz gcc-f744b2cecabb75a587af4254f1e213545b507347.tar.bz2 |
(making dirs and links): If we already made subdirs for a dir foo and foo turns out to be a symlink outside /usr/include...
(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
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index a54f409..ec8c4ca7 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -165,6 +165,23 @@ if $LINKS; then 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" |