Skip to content

Commit

Permalink
Fix bug when author names have digits in them
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Jan 12, 2017
1 parent de1767f commit 4a3d238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bibliography/bib2html.sh
@@ -1,11 +1,11 @@
#!/bin/sh
# Inputs:
# $1: basename of the cite-file
# $1: basename of the cite-file
# $2: basename of the bib-file
# $3: target encoding
# $4: path to where the files are stored (relative on the server)
rm -f $1.bibinc
for year in `grep -o [0-9]* $1.cite | sort -ru`; do
for year in `grep -o '[0-9][0-9][0-9][0-9]' $1.cite | sort -ru`; do
grep $year $1.cite > $1.cite.$year
bibtex2html -r -d --note supervisor --note examiner -charset utf8 -citefile $1.cite.$year -nf pdf pdf -nodoc -noheader -nofooter $2.bib || exit 1
iconv -f utf8 -t $3 $2.html > $1.bibinc.tmp || exit 1
Expand Down

0 comments on commit 4a3d238

Please sign in to comment.