diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-10-25 09:47:21 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-10-25 09:47:21 +0200 |
| commit | 472504a97d1d2601c8cc9ea6e0de57ab727b7698 (patch) | |
| tree | b0a9d6bee80ff1727e2148f16ee13fa9d2ab1c5d | |
| parent | 7cdccabeedda7566ad5164ad297695b4d9f8d0be (diff) | |
| download | incremental-dfsts-472504a97d1d2601c8cc9ea6e0de57ab727b7698.tar incremental-dfsts-472504a97d1d2601c8cc9ea6e0de57ab727b7698.tar.gz incremental-dfsts-472504a97d1d2601c8cc9ea6e0de57ab727b7698.tar.bz2 incremental-dfsts-472504a97d1d2601c8cc9ea6e0de57ab727b7698.tar.xz incremental-dfsts-472504a97d1d2601c8cc9ea6e0de57ab727b7698.zip | |
Provide literature.bibtex
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | literature.bibtex.gup | 9 | ||||
| -rwxr-xr-x[-rw-r--r--] | literature.meta.yml.gup | 21 |
3 files changed, 15 insertions, 16 deletions
| @@ -1,3 +1,4 @@ | |||
| 1 | literature.pdf | 1 | literature.pdf |
| 2 | literature.meta.yml | 2 | literature.meta.yml |
| 3 | **/.gup | 3 | **/.gup |
| 4 | /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 @@ | |||
| 1 | #!/usr/bin/env zsh | ||
| 2 | |||
| 3 | typeset -a bibFiles | ||
| 4 | bibFiles=(literature/**/*.bibtex) | ||
| 5 | |||
| 6 | gup --contents <<<${bibFiles} | ||
| 7 | gup -u ${bibFiles} | ||
| 8 | |||
| 9 | cat ${bibFiles} >$1 \ No newline at end of file | ||
diff --git a/literature.meta.yml.gup b/literature.meta.yml.gup index a4c0d42..64ad0fd 100644..100755 --- a/literature.meta.yml.gup +++ b/literature.meta.yml.gup | |||
| @@ -1,22 +1,11 @@ | |||
| 1 | #!/usr/bin/env zsh | 1 | #!/usr/bin/env zsh |
| 2 | 2 | ||
| 3 | exec 1>$1 | 3 | gup -u literature.bibtex |
| 4 | 4 | ||
| 5 | echo '---' | 5 | cat >$1 <<-EOF |
| 6 | 6 | --- | |
| 7 | cat <<-EOF | ||
| 8 | lang: de-de | 7 | lang: de-de |
| 9 | link-citations: true | 8 | link-citations: true |
| 9 | bibliography: literature.bibtex | ||
| 10 | ... | ||
| 10 | EOF | 11 | EOF |
| 11 | |||
| 12 | printf "bibliography:\n" | ||
| 13 | |||
| 14 | typeset -a bibFiles | ||
| 15 | bibFiles=(literature/**.bibtex) | ||
| 16 | |||
| 17 | gup --contents <<<"${bibFiles}" | ||
| 18 | for bibFile (${bibFiles}); do | ||
| 19 | printf " - %s\n" ${bibFile} | ||
| 20 | done | ||
| 21 | |||
| 22 | echo '...' | ||
