#!/bin/csh -f

# Check sources.bib for standard format useful for things like bibsort

echo "These look like unusual (e.g., non-space terminated) entry start lines"
egrep '@ *.* *{ *[^ ]*($| [^ ])' sources.bib | grep -v 'string'
echo "Done with unusual entry start lines."

# bibtool invocation depends on .bibtoolrsc, e.g., sorting off
bibtool sources.bib > bts.bib
echo 'Do a "M-x cw"' in emacs on sources.bib and bts.bib.
echo "Then get rid of bts.bib."
