diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-11-27 11:11:23 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-11-27 11:11:23 +0000 |
commit | 7879769db3faec47c0f4a1a41fee766f7e6956bb (patch) | |
tree | f2a5899a6fb23a1f925567c59133140a613a0039 /gcc/fixproto | |
parent | 27eb18baba24a2082fbd5540f635f5c86d9c7ed1 (diff) | |
download | gcc-7879769db3faec47c0f4a1a41fee766f7e6956bb.tar.gz |
(scanning files_to_check): Create subdirs files are in.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixproto')
-rwxr-xr-x | gcc/fixproto | 5 |
1 files changed, 5 insertions, 0 deletions
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 |