[Refdb-users] Improving runbib disagnostics in case of error
Status: Beta
Brought to you by:
mhoenicka
From: Olivier B. <oli...@in...> - 2006-10-30 11:28:55
|
Hi. I've tried and compile my bibliography after having upgraded to the recent .deb packages, and apparently, the styles were no longer retrieved. runbib's invocation of refdbib wasn't really provinding detailed error diagnostics in order to help locate the issue... May I suggest to add some echo log in case of an error during refdbib invocation ? Best regards, P.S. after reinitializing the database and restoring a backup, I got my styles working again. # diff -u /usr/bin/runbib.orig /usr/bin/runbib --- /usr/bin/runbib.orig 2006-10-30 11:16:54.000000000 +0100 +++ /usr/bin/runbib 2006-10-30 11:16:47.000000000 +0100 @@ -9,6 +9,7 @@ # xsltproc (db31x, teix) # textutils (bibtex) +#set -x ### start user-customizable section # stylesheets @@ -255,6 +256,7 @@ $myrefdbib -V $databaseopt $encodingopt $useropt $passwdopt $numopt= $portarg $iparg -S $style -D "." -t db31x $basename.id.xml > $basename.bib= .xml if [ $? -ne 0 ]; then + echo "error in : $myrefdbib $databaseopt $encodingopt $useropt = $passwdopt $numopt $portarg $iparg -S $style -D" '"."' "-t db31x $basename.= id.xml > $basename.bib.xml" # move the output to error files so we can use the script # in makefiles mv $basename.bib.xml $basename.bib.xml.err --=20 Olivier BERGER <oli...@in...> Ing=E9nieur Recherche - Dept INF INT Evry (http://www.int-evry.fr) OpenPGP-Id: 1024D/6B829EEC |