From: Michael Sokolov Date: Sat, 27 Jan 2001 21:07:57 +0000 (+0000) Subject: fixproto: Correctly install synthesised unistd.h and stdlib.h when they didn't need... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=825ac7041957e20307fd5a20ddd140b82d6899df;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b42e7ca6bc6..739d9671c7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-01-27 Michael Sokolov + + * fixproto: Correctly install synthesised unistd.h and stdlib.h when + they didn't need fixing. + 2001-01-27 Janis Johnson * config.gcc (i[34567]86-sequent-{ptx4*,sysv4*}): Use usegas.h 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