Skip to content

Commit

Permalink
Add CI checks for common BibTeX errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Jan 12, 2018
1 parent c333e40 commit 913e856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ if ! find content -type f |
error 'Invalid content category used; see above'
fi

# Check for common errors in publications
grep -iHn 'doi.*=.*https://doi\.org' content/pubs.bib && error 'DOIs should not include a URL'
grep -iHn '^[ ]*year.*=[ ]*{{' content/pubs.bib && error 'Years should not be specified with double braces'
grep -iHn '^[ ]*doi[ ]=' content/pubs.bib && error 'Specify XEdoi rather than DOI'
grep -iHn '^[ ]*url[ ]*=' content/pubs.bib && error 'Specify XEurl rather than URL'

chmod 2775 $BASE/new
pelican content/ --output=$BASE/new

Expand Down

0 comments on commit 913e856

Please sign in to comment.