Artifacts Associated With Ticket 47edc4cb21
Ticket change [d13e31ddb2] (rid 1251) by anonymous on 2017-01-17 11:00:04:
- icomment:
I suggest the following change, to avoid unnecessary temporary files at build time. Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -36,14 +36,12 @@ # Create a C-source-ified version of the script resources # for TclTLS so that we only need a single file to enable # this extension tls.tcl.h: @srcdir@/tls.tcl Makefile - od -A n -v -t xC < '@srcdir@/tls.tcl' > tls.tcl.h.new.1 - sed 's@ *@@g;s@..@0x&, @g' < tls.tcl.h.new.1 > tls.tcl.h.new.2 - rm -f tls.tcl.h.new.1 - mv tls.tcl.h.new.2 tls.tcl.h + od -A n -v -t xC < '@srcdir@/tls.tcl' | \ + sed 's@ *@@g;s@..@0x&, @g' > tls.tcl.h # Create default DH parameters dh_params.h: @srcdir@/gen_dh_params Makefile @srcdir@/gen_dh_params @GEN_DH_PARAMS_ARGS@ > dh_params.h.new mv dh_params.h.new dh_params.h
- login: "anonymous"
- mimetype: "text/x-fossil-plain"
- private_contact initialized to: "438e59f1f1c891b29d2528ed82d1e629cecc6336"
- severity initialized to: "Minor"
- status initialized to: "Open"
- title initialized to: "Avoid unnecessary temporary files at build time"
- type initialized to: "Build Problem"
- icomment:
Ticket change [63401761f5] (rid 1252) by rkeene on 2017-01-17 14:42:59:
- icomment:
The reason it's done this way is because the exit status is only of the last command in the pipeline. Your solution will only fail if 'sed' fails, not if 'od' fails. The result will appear to be successful but be a zero byte file.
- login: "rkeene"
- mimetype: "text/html"
- priority changed to: "Immediate"
- resolution changed to: "Open"
- icomment:
Ticket change [b9a268b66a] (rid 1254) by rkeene on 2017-01-17 15:44:50:
- login: "rkeene"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"