From f167a89c8f80669c20517876906e58be80b53048 Mon Sep 17 00:00:00 2001 From: Greg Farough Date: Wed, 18 Mar 2020 13:08:45 -0400 Subject: [PATCH] add markdown-convert.sh and edit makefile --- 2020/Makefile | 9 ++------- markdown-convert.sh | 3 +++ 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100755 markdown-convert.sh diff --git a/2020/Makefile b/2020/Makefile index 3ac561d5..a3a9426b 100644 --- a/2020/Makefile +++ b/2020/Makefile @@ -16,14 +16,9 @@ all: @echo "Give me something to make." -# for f in $(find -name '*.mdwn' -type f); do python -m markdown $f > ${f%mdwn}html; done -# todo: edit below command so it translates ALL markdown files. use above command instead until then. + wikipages: - for dir in fun getting-around raffle safe-space-policy speaker-release sponsors volunteer; do \ - if [ -f $$dir/index.mdwn ] ; then \ - python -m markdown $$dir/index.mdwn > $$dir/index.html ; \ - fi \ - done + $(shell ../markdown-convert.sh $<) speakers: curl -s https://my.fsf.org/lp-talk/30| sed -n 's=/lp-talk/30=/2020/speakers/=g; s=/lp-schedule-2020=/2020/program/=g; s/fa fa-/glyphicon glyphicon-/g; /pagestart/s/<\/div>//; /pagestart/,/pageend/p; ' > includes/generated-bios.html diff --git a/markdown-convert.sh b/markdown-convert.sh new file mode 100755 index 00000000..f4c59939 --- /dev/null +++ b/markdown-convert.sh @@ -0,0 +1,3 @@ +#! /bin/sh + +for f in $(find -name '*.mdwn' -type f); do python -m markdown $f > ${f%mdwn}html; done -- 2.25.1