Improving runbib disagnostics in case of error

Olivier Berger <[email protected]>
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
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

-- 
Olivier BERGER <[email protected]>
Ingénieur Recherche - Dept INF
INT Evry (http://www.int-evry.fr)
OpenPGP-Id: 1024D/6B829EEC



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.