Revert "edit makefile"
[libreplanet-static.git] / 2020 / Makefile
1 # Copyright (C) 2016-2020 Free Software Foundation
2 #
3 # This program is free software: you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License as
5 # published by the Free Software Foundation, either version 3 of the
6 # License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see
15 # <http://www.gnu.org/licenses/>.
16
17 all:
18 @echo "Give me something to make."
19 # for f in $(find -name '*.mdwn' -type f); do python -m markdown $f > ${f%mdwn}html; done
20 # todo: edit below command so it translates ALL markdown files. use above command instead until then.
21 wikipages:
22 for dir in fun getting-around raffle safe-space-policy speaker-release sponsors volunteer; do \
23 if [ -f $$dir/index.mdwn ] ; then \
24 python -m markdown $$dir/index.mdwn > $$dir/index.html ; \
25 fi \
26 done
27
28 speakers:
29 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
30
31 sessions:
32 curl -s https://my.fsf.org/lp-schedule-2020| 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-sessions.html
33
34 clean:
35 rm -f includes/generated-sessions.html includes/generated-bios.html
36
37 both: sessions speakers
38
39 .PHONY: all speakers sessions both clean