aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixproto
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-27 11:11:23 +0000
committerRichard Stallman <rms@gnu.org>1993-11-27 11:11:23 +0000
commit9080bb7f040eeb15c96fe85691647f76db6155bd (patch)
treef2a5899a6fb23a1f925567c59133140a613a0039 /gcc/fixproto
parent209c8048bbdd1c362a753b1f29422c442b56988f (diff)
downloadgcc-9080bb7f040eeb15c96fe85691647f76db6155bd.zip
gcc-9080bb7f040eeb15c96fe85691647f76db6155bd.tar.gz
gcc-9080bb7f040eeb15c96fe85691647f76db6155bd.tar.bz2
(scanning files_to_check): Create subdirs files are in.
From-SVN: r6168
Diffstat (limited to 'gcc/fixproto')
-rwxr-xr-xgcc/fixproto5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/fixproto b/gcc/fixproto
index 03adca2..c3fd133 100755
--- a/gcc/fixproto
+++ b/gcc/fixproto
@@ -193,6 +193,11 @@ for code in ALL STD ; do
new_files_to_check=""
for file in $files_to_check ; do
xxfile=`echo $file | sed -e 's|/\([^/\.][^/\.]*\)/\.\./|/|'`
+ # Create the dir where this file will go when fixed.
+ xxdir=`echo ./$file | sed -e 's|/[^/]*$||'`
+ if [ \! -d $abs_target_subdir/$xxdir ] ; then
+ mkdir $abs_target_subdir/$xxdir
+ fi
# Just in case we have edited out a symbolic link
if [ -f $src_dir_std/$file -a -f $src_dir_std/$xxfile ] ; then
file=$xxfile