aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-06 10:01:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-06-06 10:01:29 -0300
commit62402a1fefd04ba157221aaf99d3578d9fa03526 (patch)
treebb95603713ef08619ee12590662fb433ee6bb0a3 /bin
parent54f4cdd017b514cf031a001ef9d9bc6ebc8ecf5d (diff)
downloadbiblio-62402a1fefd04ba157221aaf99d3578d9fa03526.tar.gz
biblio-62402a1fefd04ba157221aaf99d3578d9fa03526.tar.bz2
Feat: Markdown inclusion generator (compatible with Pandoc)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/biblio-yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/biblio-yml b/bin/biblio-yml
new file mode 100755
index 0000000..af8695c
--- /dev/null
+++ b/bin/biblio-yml
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+#
+# Markdown inclusion generator that can be easily symlinked/copied by
+# Pandoc-compatible works.
+#
+
+# Parameters
+BASENAME="`basename $0`"
+DIRNAME="`dirname $0`"
+BASEDIR="$DIRNAME/.."
+
+# Go to main folder
+cd $BASEDIR
+
+# Header
+echo "# Bibliography sources"
+echo "# Automatically generated by $BASENAME"
+echo "bibliography:"
+
+# Compile
+for file in *.bib; do
+ echo " - biblio/$file"
+done