src/libpspp/Makefile.am: Fix atomicity of version.c generation.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 27 Nov 2020 23:05:55 +0000 (15:05 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 27 Nov 2020 23:11:21 +0000 (15:11 -0800)
commite71b8fcc7e866cb0b123b1b00070f5442903834b
treee6ad03a75b5e40ebe660ec908a7b4efb93da2bfe
parent9262e8416ca8cc7fce7b69f6a94d084cfaf6738d
src/libpspp/Makefile.am: Fix atomicity of version.c generation.

If the Makefile has a bug, or someone runs two "make"s in parallel, the
approach of truncating version.c then appending to it line by line,
reopening the file each time, can wind up with a nasty partial result.  By
generating it in a single go, and then replacing the file atomically, we
avoid that problem.
src/libpspp/automake.mk