summaryrefslogtreecommitdiff
path: root/net/dnscap
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2016-01-31 17:27:41 +0000
committerrillig <rillig@pkgsrc.org>2016-01-31 17:27:41 +0000
commitd4c2a0ce15915dfbd3ced363e69e63e9f0caf5a1 (patch)
tree2832887a601f9d4b5e548053ac1adc615d58d29e /net/dnscap
parent03d463627d978cb544d7ab7e3177507df3aadd17 (diff)
downloadpkgsrc-d4c2a0ce15915dfbd3ced363e69e63e9f0caf5a1.tar.gz
Fixed subst.mk not to corrupt files
Up to now, using subst.mk may have led to file corruption during active package development. This happened when a sed(1) command had a syntax error, in which case the whole sed(1) command was terminated, leaving an empty original file behind. This commit changes that behavior by applying the sed(1) commands to the original file and saving the result in a temporary file. Only after that succeeded is the original file overwritten. During this rewrite, SUBST_POSTCMD has been removed, since it was only used in one place (mk/wrapper), and since it relied on the exact sequence of the internal commands. No package in either main pkgsrc or pkgsrc-wip uses this variable right now.
Diffstat (limited to 'net/dnscap')
0 files changed, 0 insertions, 0 deletions