diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-28 19:24:58 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-28 19:24:58 -0500 |
commit | 4bdd8aedd81afc20cc372753d7463706f11aff4a (patch) | |
tree | 4fc7f0f0d967c30a090164af31d6a2fd50b44140 /build-aux/Makefile.once.head/10-write-atomic.mk | |
parent | 27f154458021c0cebd0eb6680299693cbc5ef9b8 (diff) | |
parent | 36e62cbb6bdb17c318c00ee55f8049930438aa83 (diff) |
Merge remote-tracking branch 'autothing/v3/master'
Diffstat (limited to 'build-aux/Makefile.once.head/10-write-atomic.mk')
-rw-r--r-- | build-aux/Makefile.once.head/10-write-atomic.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build-aux/Makefile.once.head/10-write-atomic.mk b/build-aux/Makefile.once.head/10-write-atomic.mk new file mode 100644 index 0000000..c4aa808 --- /dev/null +++ b/build-aux/Makefile.once.head/10-write-atomic.mk @@ -0,0 +1,23 @@ +mod.write-atomic.description = `write-atomic` auxiliary build script +mod.write-atomic.files += $(topsrcdir)/build-aux/write-atomic +define mod.write-atomic.doc +# User variables: +# - `WRITE_ATOMIC ?= $(topsrcdir)/build-aux/write-atomic` +# Inputs: +# (none) +# Outputs: +# (none) +# +# The $(WRITE_ATOMIC) program reads a file from stdin, and writes it to +# the file named in argv[1], but does so atomically. +# +# That is, the following lines are almost equivalient: +# +# ... > $@ +# ... | $(WRITE_ATOMIC) $@ +# +# The are only different in that one is atomic, while the other is not. +endef +mod.write-atomic.doc := $(value mod.write-atomic.doc) + +WRITE_ATOMIC ?= $(topsrcdir)/build-aux/write-atomic |