]> git.proxmox.com Git - pve-installer.git/commitdiff
buildsys: make country.dat generation atomic
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 Apr 2023 14:30:14 +0000 (16:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Jun 2023 07:36:58 +0000 (09:36 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 5ded58b5012cc6fe522d217841f5eb7048103060..6ecb7e61b2ccb2d03dab4dcda28a26767d2e9280 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,8 @@ HTML_COMMON_SOURCES=$(wildcard html-common/*.htm) $(wildcard html-common/*.css)
 all: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
 
 country.dat: country.pl
-       ./country.pl > country.dat
+       ./country.pl > country.dat.tmp
+       mv country.dat.tmp country.dat
 
 deb: ${DEB}
 ${DEB}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} ProxmoxInstallerSetup.pm