#!/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