blob: d49efc2ddb851c782798f416c30c27d7d525bc49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
if $(pandoc -v | grep --quiet "pandoc 1.19.2.1"); then
sed -i "s/'<p>- generate notes_list/'-- generate notes_list/g" pyblog
sed -i "s/'<p>- generate blog_list/'-- generate blog_list/g" pyblog
sed -i "s/list here <\/p>'/list here --'/g" pyblog
elif $(pandoc -v | grep --quiet "pandoc 2.0.6"); then
sed -i "s/'-- generate notes_list/'<p>– generate notes_list/g" pyblog
sed -i "s/'-- generate blog_list/'<p>– generate blog_list/g" pyblog
sed -i "s/list here --'/list here –<\/p>'/g" pyblog
else
echo $(pandoc -v | grep --quiet "pandoc 2.0.6")
fi
|