Commit 084fcc94 authored by Roland Levillain's avatar Roland Levillain
Browse files

Make a more portable use of mktemp.

	* doc/gen-split-examples-mk,
	* doc/gen-split-outputs-mk:
	Here.
parent 67c299f4
2010-03-22 Roland Levillain <roland@lrde.epita.fr>
Make a more portable use of mktemp.
* doc/gen-split-examples-mk,
* doc/gen-split-outputs-mk:
Here.
2010-03-22 Roland Levillain <roland@lrde.epita.fr>
 
Sort inputs of generators to make them deterministic w.r.t. outputs.
......@@ -59,7 +59,7 @@ inputs()
output_dir=examples/split
# Use a temporary file to dump rules at the end of the output.
tempfile=`mktemp`
tempfile=`mktemp /tmp/temp.XXXXXX`
# Set up automatic cleanup.
cleanup() { rm -f "$tempfile"; exit; }
trap cleanup 0 1 2 3 6 15
......
......@@ -60,7 +60,7 @@ inputs()
output_dir=outputs/split
# Use a temporary file to dump rules at the end of the output.
tempfile=`mktemp`
tempfile=`mktemp /tmp/temp.XXXXXX`
# Set up automatic cleanup.
cleanup() { rm -f "$tempfile"; exit; }
trap cleanup 0 1 2 3 6 15
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment