Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/scripts/     Datei vom 15.10.2026 mit Größe 922 B image not shown  

SSL lint-bib.sh   Interaktion und
PortierbarkeitShell

 

#!/usr/bin/env bash

# Make this script robust against unintentional errors.
# See e.g. http://redsymbol.net/articles/unofficial-bash-strict-mode/ for explanation.
set -euo pipefail
IFS=$'\n\t'

# Test if there are keys with characters outside alphanumeric, '-', '_', and ':'.
invalid_keys=$(bibtool --pass.comments=on -- 'select{$key "[^-:A-Za-z0-9_]+"}' docs/references.bib)

if [[ -n "$invalid_keys" ]]; then
  echo "::error:: There are items in references.bib with keys containing characters" \
    "outside alphanumeric, '-', '_', and ':':" && printf '%s\n' "$invalid_keys"
  exit 1
fi

set -x

# https://leanprover-community.github.io/contribute/doc.html#citing-other-works
cp docs/references.bib docs/references.bib.old
bibtool --preserve.key.case=on --preserve.keys=on --pass.comments=on --print.use.tab=off -s \
  -i docs/references.bib -o docs/references.bib
diff -U8 docs/references.bib.old docs/references.bib

Messung
CHZG
9410010097

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.18Angebot  ¤

*Eine klare Vorstellung vom Zielzustand