-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.sh
More file actions
27 lines (22 loc) · 806 Bytes
/
compile.sh
File metadata and controls
27 lines (22 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
for fn in `\ls md` ; do
b=${fn%.*}
if [ "$b" == "abstractform" ]; then
pandoc --template template.html -T "NESS 2017" --smart \
-f markdown+link_attributes+header_attributes \
-H html/abstractdata/header.php \
-t html -o html/$b.html md/$fn
else
pandoc --template template.html -T "NESS 2017" --smart \
-f markdown+link_attributes+header_attributes \
-t html -o html/$b.html md/$fn
fi
done
for fn in `\ls html | \grep 'reg.*\.html'` ; do
b=${fn%.*}
mv html/$b.html html/$b.php
done
mv html/abstractform.html html/abstractform.php
mv html/abstractconf.html html/abstractconf.php
mv html/abstractsend.html html/abstractsend.php
mv html/paper-upload.html html/paper-upload.php