From: Roland McGrath Date: Mon, 30 Aug 1993 21:36:49 +0000 (+0000) Subject: Formerly autoheader.sh.~29~ X-Git-Tag: fsf-origin~864 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f315cdbd7818344763fd4e975a15b25b88c43798;p=thirdparty%2Fautoconf.git Formerly autoheader.sh.~29~ --- diff --git a/autoheader.in b/autoheader.in index 04a94f444..ff33ac3fb 100644 --- a/autoheader.in +++ b/autoheader.in @@ -200,7 +200,11 @@ done if test $# -eq 0; then if test $status -eq 0; then - mv -f $tmpout ${config_h}.in + if cmp -s $tmpout ${config_h}.in; then + mv -f $tmpout ${config_h}.in + else + rm -f $tmpout + fi else rm -f $tmpout fi diff --git a/autoheader.sh b/autoheader.sh index 04a94f444..ff33ac3fb 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -200,7 +200,11 @@ done if test $# -eq 0; then if test $status -eq 0; then - mv -f $tmpout ${config_h}.in + if cmp -s $tmpout ${config_h}.in; then + mv -f $tmpout ${config_h}.in + else + rm -f $tmpout + fi else rm -f $tmpout fi diff --git a/bin/autoheader.in b/bin/autoheader.in index 04a94f444..ff33ac3fb 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -200,7 +200,11 @@ done if test $# -eq 0; then if test $status -eq 0; then - mv -f $tmpout ${config_h}.in + if cmp -s $tmpout ${config_h}.in; then + mv -f $tmpout ${config_h}.in + else + rm -f $tmpout + fi else rm -f $tmpout fi