Commit 228a43f5 authored by User expired's avatar User expired
Browse files

Always sort entries in new bibtex records

parent 0b0faf92
Pipeline #26461 passed with stage
in 1 minute and 24 seconds
......@@ -71,14 +71,21 @@ do
continue
}
# Format bibtex file.
# Apply basic formatting for dry run.
if [ -n "$DRYRUN" ]
then
# Apply basic formatting for dry run.
bib-format -u "${bibfile}"
fi
# Format bibtex file.
bib-format ${KEEPVALUES} ${DRYRUN} "${bibfile}"
# Sort bibtex fields (skip for dry run).
if [ -z "$DRYRUN" ]
then
bib-order -i "${bibfile}"
fi
# (Un)abbreviate journal name.
bib-jabbr ${DRYRUN} ${FULLNAME} "${bibfile}"
......
......@@ -179,14 +179,21 @@ then
exit 1
fi >/dev/stderr
# Format bibtex file.
# Apply basic formatting for dry run.
if [ -n "$DRYRUN" ]
then
# Apply basic formatting for dry run.
bib-format -u "${BIBFILE}"
fi
# Format bibtex file.
bib-format ${KEEPVALUES} ${DRYRUN} "${BIBFILE}"
# Sort bibtex fields (skip for dry run).
if [ -z "$DRYRUN" ]
then
bib-order -i "${BIBFILE}"
fi
# (Un)abbreviate journal name.
bib-jabbr ${DRYRUN} ${FULLNAME} "${BIBFILE}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment