Re: latex-cjk upload to unstable ...
Norbert Preining <preining@logic.at> wrote:
> On Die, 11 Jul 2006, Frank Küster wrote:
>> Yes, I noticed that too. And I suggest to not discard the log when
>> something goes wrong; something like
>>
>> if sh ./makefont >> log 2>&1; then
>> echo done
>> else
>> echo "Error running makefont"
>> cat log
>> fi
>
> Same for all the other >> log redirections ...
Which calls for a function:
run_command(){
command="$*"
echo -n "Running $command ..."
if $command >> log 2>&1; then
echo "done"
rm log
else
echo "failed"
cat log
fi
run_command sh ./makefont
(note the rm call that I had forgotten).
Regards, Frank
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: