summaryrefslogtreecommitdiff
path: root/literature.meta.yml.gup
blob: dc8e95d599e3afe4974e7eaad7cead45fb8ae450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env zsh

exec 1>$1

echo '---'

cat <<-EOF
	lang: de-de
	link-citations: true
	EOF

printf "bibliography:\n"

typeset -a bibFiles
bibFiles=(literature/**.bibtex)

# sha256sum ${bibFiles} >&2

gup --contents <<<"${bibFiles}"
gup -u ${bibFiles}

for bibFile (${bibFiles}); do
    printf "  - %s\n" ${bibFile}
done

echo '...'