diff options
Diffstat (limited to 'win32/config_h.PL')
-rw-r--r-- | win32/config_h.PL | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/win32/config_h.PL b/win32/config_h.PL index 6b7fbda974..03dddb3b8a 100644 --- a/win32/config_h.PL +++ b/win32/config_h.PL @@ -79,10 +79,11 @@ while (<SH>) close(H); close(SH); - -chmod(0666,"$opt{CORE_DIR}/$opt{CONFIG_H}"); -copy("$file.new","$opt{CORE_DIR}/$opt{CONFIG_H}") || die "Cannot copy:$!"; -chmod(0444,"$opt{CORE_DIR}/$opt{CONFIG_H}"); +if (compare("$file.new","$opt{CORE_DIR}/$opt{CONFIG_H}")) { + chmod(0666,"$opt{CORE_DIR}/$opt{CONFIG_H}"); + copy("$file.new","$opt{CORE_DIR}/$opt{CONFIG_H}") || die "Cannot copy:$!"; + chmod(0444,"$opt{CORE_DIR}/$opt{CONFIG_H}"); +} if (compare("$file.new",$file)) { |