diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-06-08 10:23:07 +0100 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-06-08 10:23:07 +0100 |
commit | 4d78a0af0f9f2b83013cb4a71a486335dc7043e1 (patch) | |
tree | 7a20ceeb6c7f214ff22bda1149e6595fc6efaa27 | |
parent | efcd36c1c1b5d38c88378ea233f880863ce663da (diff) | |
download | bookup-4d78a0af0f9f2b83013cb4a71a486335dc7043e1.tar.gz bookup-4d78a0af0f9f2b83013cb4a71a486335dc7043e1.tar.bz2 |
Fix: Makefile: compilation: ignore files without the .md extension
-rw-r--r-- | Makefile.bookup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.bookup b/Makefile.bookup index 327558a..3df0384 100644 --- a/Makefile.bookup +++ b/Makefile.bookup @@ -106,7 +106,7 @@ compile_book: metadata @/bin/bash -c 'for file in $(BOOKUP)/structure/00*.md; do cat $$file >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md; done' @#/bin/bash -c 'for file in content/sections/*/*.md; do cat $$file >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md ; cat $(BOOKUP)/templates/references.md >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md; done' @#/bin/bash -c 'for file in content/sections/*.md; do cat $$file >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md ; cat $(BOOKUP)/templates/references.md >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md; done' - @/bin/bash -c 'find content/sections -type f | sort | while read file; do cat $$file >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md ; cat $(BOOKUP)/templates/references.md >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md; done' + @/bin/bash -c 'find content/sections -type f | grep '\.md$$' | sort | while read file; do cat $$file >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md ; cat $(BOOKUP)/templates/references.md >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md; done' @/bin/bash -c 'for file in $(BOOKUP)/structure/99*.md; do cat $$file >> $(OUTPUT).md ; echo "" >> $(OUTPUT).md; done' @sed -i -e "s|%%revision%%|$(REVISION)|g" -e "s|%%date%%|$(DATE)|g" $(OUTPUT).md @test -e snippets/terminology.sed && sed -i -f snippets/terminology.sed $(OUTPUT).md || true @@ -114,7 +114,7 @@ compile_book: metadata compile_notes: metadata @rm -f notes.md - @/bin/bash -c 'find content/notes -type f | sort | while read file; do cat $$file >> notes.md; echo "" >> notes.md; done; echo "# Bibliografia" >> notes.md' + @/bin/bash -c 'find content/notes -type f | grep '\.md$$' | sort | while read file; do cat $$file >> notes.md; echo "" >> notes.md; done; echo "# Bibliografia" >> notes.md' @sed -i -e "s|%%revision%%|$(REVISION)|g" -e "s|%%date%%|$(DATE)|g" notes.md @test -e snippets/terminology.sed && sed -i -f snippets/terminology.sed notes.md || true @ln -s notes.md notes.Rmd |