From 9080bb7f040eeb15c96fe85691647f76db6155bd Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 27 Nov 1993 11:11:23 +0000 Subject: [PATCH] (scanning files_to_check): Create subdirs files are in. From-SVN: r6168 --- gcc/fixproto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/fixproto b/gcc/fixproto index 03adca20da1..c3fd1334032 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 -- 2.30.2