summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-10-25 09:47:21 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-10-25 09:47:21 +0200
commit472504a97d1d2601c8cc9ea6e0de57ab727b7698 (patch)
treeb0a9d6bee80ff1727e2148f16ee13fa9d2ab1c5d
parent7cdccabeedda7566ad5164ad297695b4d9f8d0be (diff)
downloadincremental-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--.gitignore1
-rwxr-xr-xliterature.bibtex.gup9
-rwxr-xr-x[-rw-r--r--]literature.meta.yml.gup21
3 files changed, 15 insertions, 16 deletions
diff --git a/.gitignore b/.gitignore
index 670b81f..69c5fde 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
1literature.pdf 1literature.pdf
2literature.meta.yml 2literature.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
3typeset -a bibFiles
4bibFiles=(literature/**/*.bibtex)
5
6gup --contents <<<${bibFiles}
7gup -u ${bibFiles}
8
9cat ${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
3exec 1>$1 3gup -u literature.bibtex
4 4
5echo '---' 5cat >$1 <<-EOF
6 6 ---
7cat <<-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
12printf "bibliography:\n"
13
14typeset -a bibFiles
15bibFiles=(literature/**.bibtex)
16
17gup --contents <<<"${bibFiles}"
18for bibFile (${bibFiles}); do
19 printf " - %s\n" ${bibFile}
20done
21
22echo '...'