7 echo "Wrong number of arguments." >&2
16 # docbook2man inserts a date formatted using the current locale into its
17 # output. Using the "C" locale makes sure it's always in the default format.
21 trap "rm -rf ${tmpdir}" EXIT
23 if ! ( cd `dirname ${input}` &&
24 ${cmd} -o ${tmpdir} `basename "${input}"` >/dev/null; )
26 echo "Building ${output} failed." >&2
30 mv "${tmpdir}/${cmdoutputfile}" "${output}"
32 # Needed for make to recognize output file