#csh script to tidy gp bibtex database $Revision: 1.3 $ #WBL 13 Jan 1995 # # #while it is nice to use -delete-empty-values and get bibclean #to remove empty fields; bibclean version 2.08 ocasionally only #partially removes them leaving parts of the keyword behind. May use #this option, but be prepared to tidy up by hand # #Use version of bibclean which doesnt trample on url fields. This may #be in release 2.10. Use local hack (extracted from 2.10) for the time being # nawk -f remove_comments.awk gp-bibliography.bib.source >gp-bibliography.nocom bibclean -delete-empty-values gp-bibliography.nocom > gp-bibliography.bib # #Convert tidy .bib to txt files. This tests BibTeX will actually work on it # bib2txt.bat # #Insert version header into each output file # mv gp-bibliography.bib t nawk -f extract_header.awk gp-bibliography.bib.source |cat - t > gp-bibliography.bib # mv gp-bib-alpha.txt t nawk -f extract_header.awk gp-bibliography.bib.source |cat - t > gp-bib-alpha.txt # mv gp-bib-num.txt t nawk -f extract_header.awk gp-bibliography.bib.source |cat - t > gp-bib-num.txt # rm t