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