diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-05-12 12:00:02 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-06-04 17:35:41 +0200 |
commit | 6c16c0ca2f22e8ee249f448d928101fd33240a1b (patch) | |
tree | b563693d810730f53461c64648bb29df4bff3012 /bin/biblatex-tidy.sh | |
parent | f6bf252b4faac6ad6c26db40adc950b329043370 (diff) |
improve biblatex tidying, to support multiple JabRef comments, and not use temporary files
Diffstat (limited to 'bin/biblatex-tidy.sh')
-rwxr-xr-x | bin/biblatex-tidy.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/biblatex-tidy.sh b/bin/biblatex-tidy.sh deleted file mode 100755 index a29632d..0000000 --- a/bin/biblatex-tidy.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# tidy BibLaTeX file - -# Depends: bibclean - -set -eu - -INFILE=$1 - -# workaround: strip JabRef comment that bibclean chokes on -perl -gpe 's/^\@Comment\{jabref-meta: databaseType:biblatex;\}$//m' < $INFILE > $INFILE~ -bibclean -max-width 0 $INFILE~ > $INFILE~~ -printf '\n%s\n' '@Comment{jabref-meta: databaseType:biblatex;}' >> $INFILE~~ -mv -f $INFILE~~ $INFILE -rm -f $INFILE~ |