Mercurial > hg > Members > atton > seminar_slides
annotate config/definition.sh @ 159:4b46fdb890e3
Add slide for seminar
author | atton <atton@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 20 Dec 2016 18:10:25 +0900 |
parents | b210051ca507 |
children |
rev | line source |
---|---|
6
f6d65d2a806f
Split const definitions into config/definition.sh
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 #!/bin/sh |
f6d65d2a806f
Split const definitions into config/definition.sh
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 |
f6d65d2a806f
Split const definitions into config/definition.sh
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 # new slide definitions |
f6d65d2a806f
Split const definitions into config/definition.sh
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 |
f6d65d2a806f
Split const definitions into config/definition.sh
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 slide_root_dirname="slides" |
f6d65d2a806f
Split const definitions into config/definition.sh
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 slide_date_format="%Y%m%d" |
f6d65d2a806f
Split const definitions into config/definition.sh
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 slide_name="slide.md" |
7
e0c4a349c94f
Copy template when generate new slide
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
8 slide_template_file="template/${slide_name}" |
e0c4a349c94f
Copy template when generate new slide
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
9 |
e0c4a349c94f
Copy template when generate new slide
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
10 # build definitions |
e0c4a349c94f
Copy template when generate new slide
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
11 |
e0c4a349c94f
Copy template when generate new slide
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
12 build_command="slideshow" |
120
b210051ca507
Change slideshow template to s6cr
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
80
diff
changeset
|
13 build_template_option="-t s6cr" |
7
e0c4a349c94f
Copy template when generate new slide
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
14 build_target_filename=${slide_name} |
11
9dca7035ab93
Generate index page for slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
9
diff
changeset
|
15 |
9dca7035ab93
Generate index page for slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
9
diff
changeset
|
16 # index definitions |
9dca7035ab93
Generate index page for slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
9
diff
changeset
|
17 index_source_name="index.md" |
9dca7035ab93
Generate index page for slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
9
diff
changeset
|
18 index_file_name="index.html" |
9dca7035ab93
Generate index page for slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
9
diff
changeset
|
19 index_template_file="template/index.html.erb" |
21
0c75a6b0ef8e
Add script to sync generated slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
11
diff
changeset
|
20 |
0c75a6b0ef8e
Add script to sync generated slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
11
diff
changeset
|
21 # definitions for save generated slides |
0c75a6b0ef8e
Add script to sync generated slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
11
diff
changeset
|
22 save_repository_path="../generated_seminar_slides" |
0c75a6b0ef8e
Add script to sync generated slides
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
11
diff
changeset
|
23 save_directory_path="${save_repository_path}/${slide_root_dirname}" |