[Refdb-devel] backend-bibtex.c + runbib
Status: Beta
Brought to you by:
mhoenicka
From: Damien J. D. <D.J...@cs...> - 2006-01-02 03:58:25
|
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 |