From 472504a97d1d2601c8cc9ea6e0de57ab727b7698 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 25 Oct 2017 09:47:21 +0200 Subject: Provide literature.bibtex --- .gitignore | 1 + literature.bibtex.gup | 9 +++++++++ literature.meta.yml.gup | 21 +++++---------------- 3 files changed, 15 insertions(+), 16 deletions(-) create mode 100755 literature.bibtex.gup mode change 100644 => 100755 literature.meta.yml.gup diff --git a/.gitignore b/.gitignore index 670b81f..69c5fde 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ literature.pdf literature.meta.yml **/.gup +/literature.bibtex diff --git a/literature.bibtex.gup b/literature.bibtex.gup new file mode 100755 index 0000000..cabebc3 --- /dev/null +++ b/literature.bibtex.gup @@ -0,0 +1,9 @@ +#!/usr/bin/env zsh + +typeset -a bibFiles +bibFiles=(literature/**/*.bibtex) + +gup --contents <<<${bibFiles} +gup -u ${bibFiles} + +cat ${bibFiles} >$1 \ No newline at end of file diff --git a/literature.meta.yml.gup b/literature.meta.yml.gup old mode 100644 new mode 100755 index a4c0d42..64ad0fd --- a/literature.meta.yml.gup +++ b/literature.meta.yml.gup @@ -1,22 +1,11 @@ #!/usr/bin/env zsh -exec 1>$1 +gup -u literature.bibtex -echo '---' - -cat <<-EOF +cat >$1 <<-EOF + --- lang: de-de link-citations: true + bibliography: literature.bibtex + ... EOF - -printf "bibliography:\n" - -typeset -a bibFiles -bibFiles=(literature/**.bibtex) - -gup --contents <<<"${bibFiles}" -for bibFile (${bibFiles}); do - printf " - %s\n" ${bibFile} -done - -echo '...' -- cgit v1.2.3