Mercurial > hg > Members > atton > seminar_slides
comparison build.sh @ 14:54fed5d73027
Check slide directory on build
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 01 Feb 2014 21:13:05 +0900 |
parents | daf59131cdb8 |
children | 3fb1e07004fa |
comparison
equal
deleted
inserted
replaced
13:62d6bd64af0a | 14:54fed5d73027 |
---|---|
8 # functions | 8 # functions |
9 | 9 |
10 command_check() { | 10 command_check() { |
11 if !(which ${build_command} >& /dev/null;) then | 11 if !(which ${build_command} >& /dev/null;) then |
12 echo ${build_command} not found | 12 echo ${build_command} not found |
13 exit | |
14 fi | |
15 } | |
16 | |
17 directory_check() { | |
18 if !([ -d ${slide_root_dirname} ]); then | |
19 echo "slide directory not found :" ${slide_root_dirname} | |
13 exit | 20 exit |
14 fi | 21 fi |
15 } | 22 } |
16 | 23 |
17 slide_name_from_full_path() { | 24 slide_name_from_full_path() { |
62 | 69 |
63 | 70 |
64 # main | 71 # main |
65 | 72 |
66 command_check | 73 command_check |
74 directory_check | |
67 build_slides | 75 build_slides |
68 build_index | 76 build_index |