diff options
author | Michael Sokolov <msokolov@ivan.Harhan.ORG> | 2001-01-27 21:07:57 +0000 |
---|---|---|
committer | Michael Sokolov <msokolov@gcc.gnu.org> | 2001-01-27 21:07:57 +0000 |
commit | 825ac7041957e20307fd5a20ddd140b82d6899df (patch) | |
tree | 1a32fb55c299e16e492d02a22e4b34f34d94929f /gcc/fixproto | |
parent | 70305f2b9443e90266047dbca3c12ed8521a5690 (diff) | |
download | gcc-825ac7041957e20307fd5a20ddd140b82d6899df.zip gcc-825ac7041957e20307fd5a20ddd140b82d6899df.tar.gz gcc-825ac7041957e20307fd5a20ddd140b82d6899df.tar.bz2 |
fixproto: Correctly install synthesised unistd.h and stdlib.h when they didn't need fixing.
* fixproto: Correctly install synthesised unistd.h and stdlib.h when
they didn't need fixing.
From-SVN: r39304
Diffstat (limited to 'gcc/fixproto')
-rwxr-xr-x | gcc/fixproto | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/fixproto b/gcc/fixproto index 1db488c..d4cfa67 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 |