]> git.proxmox.com Git - pve-access-control.git/commitdiff
use 'mv' to make targets atomic
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 7 Dec 2011 05:19:44 +0000 (06:19 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 7 Dec 2011 05:19:44 +0000 (06:19 +0100)
To avoid empty man page bug.

Makefile

index 7e2db08cddf7c7a6e899c3ba9979316d87f5cfea..3ff3c55efb86eb9b9b4fa8b68e20e16d68d4ba96 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,10 +25,12 @@ dinstall: deb
 
 %.1.gz: %.1.pod
        rm -f $@
-       cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@
+       cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@.tmp
+       mv $@.tmp $@
 
 pveum.1.pod: pveum
-       perl -I. ./pveum printmanpod >$@
+       perl -I. ./pveum printmanpod >$@.tmp
+       mv $@.tmp $@
 
 .PHONY: install
 install: pveum.1.pod pveum.1.gz