diff options
-rw-r--r-- | ChangeLog.md | 5 | ||||
-rw-r--r-- | _biblio.yml | 79 | ||||
-rwxr-xr-x | bin/biblio-yml | 15 |
3 files changed, 53 insertions, 46 deletions
diff --git a/ChangeLog.md b/ChangeLog.md index 79719a0..6996ee8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,10 @@ # ChangeLog +## 2024-06-09 - YAML + +* [x] Improve `_biblio.yml` management so + it can be easily included elsewhere. + ## 2024-06-06 - Pandoc bibliographies * [x] Pandoc bibliographyigenerator (`_biblio.yml`) that can be easily copied, diff --git a/_biblio.yml b/_biblio.yml index eec55b2..fef8763 100644 --- a/_biblio.yml +++ b/_biblio.yml @@ -1,54 +1,51 @@ -# Bibliography sources -# Automatically generated by biblio-yml -bibliography: - - biblio/ai.bib + - biblio/neuroscience.bib + - biblio/computing.bib + - biblio/history.bib + - biblio/dictatorship.bib + - biblio/philology.bib - biblio/anthropology.bib - - biblio/art.bib - - biblio/biography.bib - - biblio/biology.bib + - biblio/information.bib + - biblio/technology.bib - biblio/brazil.bib + - biblio/prison.bib + - biblio/biology.bib + - biblio/music.bib - biblio/cepik.bib - - biblio/chemistry.bib - - biblio/cognition.bib - - biblio/computing.bib + - biblio/future.bib + - biblio/ai.bib + - biblio/math.bib + - biblio/war.bib - biblio/cybernetics.bib - - biblio/cybersyn.bib - - biblio/dictatorship.bib + - biblio/politics.bib - biblio/economics.bib - - biblio/environment.bib - - biblio/epistemology.bib - - biblio/future.bib - - biblio/geopolitics.bib + - biblio/security.bib + - biblio/sociology.bib + - biblio/art.bib - biblio/greece.bib - - biblio/hermeneutics.bib - - biblio/history.bib + - biblio/rome.bib - biblio/incoming.bib - - biblio/information.bib - - biblio/law.bib + - biblio/physics.bib + - biblio/unsorted.bib + - biblio/psychology.bib + - biblio/cybersyn.bib + - biblio/theology.bib + - biblio/chemistry.bib + - biblio/epistemology.bib - biblio/lexicon.bib - biblio/literature.bib - - biblio/main.bib - - biblio/math.bib - - biblio/methodology.bib - - biblio/misc.bib + - biblio/spy.bib + - biblio/environment.bib - biblio/movies.bib - - biblio/music.bib - - biblio/neuroscience.bib - - biblio/philology.bib - - biblio/philosophy.bib - - biblio/physics.bib - - biblio/politics.bib - - biblio/prison.bib - - biblio/psychology.bib - - biblio/rome.bib - biblio/seafaring.bib - - biblio/security.bib - - biblio/sociology.bib - - biblio/spy.bib + - biblio/main.bib + - biblio/vertigem.bib + - biblio/law.bib + - biblio/biography.bib + - biblio/misc.bib + - biblio/cognition.bib + - biblio/geopolitics.bib + - biblio/methodology.bib - biblio/surveillance.bib - - biblio/technology.bib - - biblio/theology.bib + - biblio/hermeneutics.bib + - biblio/philosophy.bib - biblio/torture.bib - - biblio/unsorted.bib - - biblio/vertigem.bib - - biblio/war.bib diff --git a/bin/biblio-yml b/bin/biblio-yml index af8695c..0cb9cd6 100755 --- a/bin/biblio-yml +++ b/bin/biblio-yml @@ -8,16 +8,21 @@ BASENAME="`basename $0`" DIRNAME="`dirname $0`" BASEDIR="$DIRNAME/.." +PREFIX="${1:-biblio}" +HEADER="${2:-false}" # Go to main folder cd $BASEDIR # Header -echo "# Bibliography sources" -echo "# Automatically generated by $BASENAME" -echo "bibliography:" +if [ "$HEADER" != "false" ]; then + echo "# Bibliography sources" + echo "# Automatically generated by $BASENAME" + echo "bibliography:" +fi # Compile -for file in *.bib; do - echo " - biblio/$file" +#for file in *.bib; do +find -name '*.bib' | sed -e 's|^./||' | while read file; do + echo " - $PREFIX/$file" done |