Mercurial > hg > Members > atton > seminar_slides
changeset 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 | 62d6bd64af0a |
children | b3ce1cf12487 |
files | build.sh |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/build.sh Sat Feb 01 00:10:16 2014 +0900 +++ b/build.sh Sat Feb 01 21:13:05 2014 +0900 @@ -14,6 +14,13 @@ fi } +directory_check() { + if !([ -d ${slide_root_dirname} ]); then + echo "slide directory not found :" ${slide_root_dirname} + exit + fi +} + slide_name_from_full_path() { echo $1 | sed -e 's/.[^.]*$/.html/' } @@ -64,5 +71,6 @@ # main command_check +directory_check build_slides build_index