summaryrefslogtreecommitdiff
path: root/gcc/fixproto
diff options
context:
space:
mode:
authormsokolov <msokolov@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-27 21:07:57 +0000
committermsokolov <msokolov@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-27 21:07:57 +0000
commit3f6c0ba0464973a9a5943dc27f608a1922a758b8 (patch)
tree1a32fb55c299e16e492d02a22e4b34f34d94929f /gcc/fixproto
parentf92a3fd0329d2272bd6a2fd2ecd24f5cef1a2594 (diff)
downloadgcc-3f6c0ba0464973a9a5943dc27f608a1922a758b8.tar.gz
* fixproto: Correctly install synthesised unistd.h and stdlib.h when
they didn't need fixing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixproto')
-rwxr-xr-xgcc/fixproto7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/fixproto b/gcc/fixproto
index 1db488cec7a..d4cfa67fc1a 100755
--- a/gcc/fixproto
+++ b/gcc/fixproto
@@ -310,7 +310,12 @@ EOF
EOF
${FIX_HEADER} $rel_source_file tmp.h $abs_target_dir/$rel_source_file ${DEFINES} $include_path
if test $? != 0 ; then exit 1 ; fi
- rm tmp.h
+ if test -f $abs_target_dir/$rel_source_file
+ then
+ rm tmp.h
+ else
+ mv tmp.h $abs_target_dir/$rel_source_file
+ fi
fi
done