domd: Do not needlessly overwrite Makefiles
authorOrgad Shaneh <orgads@gmail.com>
Sun, 31 Jul 2016 12:34:57 +0000 (15:34 +0300)
committerOrgad Shaneh <orgads@gmail.com>
Wed, 16 Nov 2016 07:08:27 +0000 (09:08 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1370)

util/domd

index 95bb1b06e2578696d3618e48cdb58d28dd1087ed..3ac4950c4293658b82993cc93fb55fffb6b4ffe8 100755 (executable)
--- a/util/domd
+++ b/util/domd
@@ -32,7 +32,11 @@ else
     ${PERL} $TOP/util/clean-depend.pl < Makefile > Makefile.new
     RC=$?
 fi
-mv Makefile.new Makefile
+if ! cmp -s Makefile Makefile.new; then
+    mv Makefile.new Makefile
+else
+    rm -f Makefile.new
+fi
 # unfake the presence of Kerberos
 rm $TOP/krb5.h