summaryrefslogtreecommitdiff
path: root/src/transformnode.h
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2014-02-16 13:34:30 (GMT)
committerJan Huwald <jh@sotun.de>2014-02-16 13:34:30 (GMT)
commite116df4fa716795bf98c774d67e6aa102f8e1fc4 (patch)
tree50166b5c435aff66483e9af18ec321accca23ba9 /src/transformnode.h
parent7bc8b6d716b3425d6e1cf74600db1667ed16d4ef (diff)
write output to temporary file, commit only after completion
cmdline() is modified to write into <output_file>~ and only after succesful completion of the given command rename this file into <output_file>. In case of failure the file is deleted. This prevents dangling errorneous output files and overwriting valid (but old) files with new trash. This patch is required for robust use of OpenSCAD in Makefiles. In case of a crash the output file must not be touched. Otherwise the update file date will trick Makefile into assuming a succesful build.
Diffstat (limited to 'src/transformnode.h')
0 files changed, 0 insertions, 0 deletions
contact: Jan Huwald // Impressum