#!/bin/csh -f # this invokes the emacs refer2bibtex mode # the output is written in a file called r2b-out # this file is then moved to the input name with the suffix ".bib" # # you need to modify "elcpckage" to point to the refer2bibtex.elc file # # Dave Nichols # last modified Martin Karrenbach 4-21-1994 set elcpackage = "/usr/local/lib/share/emacs/misc" emacs -batch -l $elcpackage/refer2bibtex.elc $1 -f r2b-batch-convert-buffer -kill echo moving r2b-out to $1:r.bib mv r2b-out $1:r.bib mv r2b-log $1:r.log if( -f r2b-out\~ ) then /bin/rm r2b-out\~ endif if( -f r2b-log\~ ) then /bin/rm r2b-log\~ endif