Write files atomically in the microcode makefile.
authorTaylor R Campbell <campbell@mumble.net>
Mon, 30 Sep 2013 22:56:19 +0000 (22:56 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Mon, 30 Sep 2013 22:56:21 +0000 (22:56 +0000)
commitb8fc106ca8d173ffb5b24748184626f4c6373e06
tree0ab54d021da43e8ea3d890c36db8816efedb9f21
parent96ffae5fad6d6c3bec56f935cfff18fe1ced1792
Write files atomically in the microcode makefile.

Use a temporary file and rename it over the permanent one only if the
command succeeded.  That way, we don't leave truncated files around
on failure.
src/microcode/makegen/Makefile.in.in