backend-bibtex.c + runbib

Damien Jade Duff <[email protected]>
Newsgroups gmane.text.refdb.devel
Message-ID <[email protected]>
Dear Markus

I've made 3 changes to programs in my refdb installation and I thought I
should let you know about them before the next release proper. They're
just simple changes where something wasn't working as I should like it.

I'm sending to the refdb-devel list because it's all written in lingua
programming.

Regards
Damien Jade Duff


(1)
in backend-bibtex.c:

   if (strcmp(type, "BOOK") == 0 || strcmp(type, "CHAP") == 0 ||
       strcmp(type, "SER") == 0 || strcmp(type, "THES") == 0 ||
/* djd20060101      strcmp(type, "RPRT") == 0) {*/
       strcmp(type, "RPRT") == 0 || strcmp(type, "CONF") == 0 )
         {
/*djd 20060101 It may be that we want to put "HEAR" in here too???*/


     /*----------------------------------------------------------------*/
     /* book title */
     item = get_refdb_booktitle_copy(ptr_rendinfo->dbires);
     if (item != NULL) {
       if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "  BOOKTITLE =
{", ptr_rendinfo->ptr_ref_len, 0)) == NULL) {



(2)
in backend-bibtex.c:

   else if (strcmp(type, "CONF") == 0 || strcmp(type, "HEAR") == 0) {
     strcat(*(ptr_rendinfo->ptr_ref), "@INPROCEEDINGS{ ");
/* djd 20060101    strcat(*(ptr_rendinfo->ptr_ref), "@PROCEEDINGS{ "); */
   }

(3)
in runbib:

   $mysort $filename | $myuniq | $myrefdbib $databaseopt $encodingopt
$useropt $passwdopt $iparg -S $style -t bibtex > $basename.bib
         if [ $? -ne 0 ]; then
#want to be able to deal with empty .aux file and keep on processing
#remaining aux files
#for case of linked (multiple) tex files
#              exit 1
echo No references retrieved from $filename
         fi




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
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.