Mercurial > hg > Members > atton > seminar_slides
view build.sh @ 7:e0c4a349c94f
Copy template when generate new slide
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 31 Jan 2014 14:10:07 +0900 |
parents | f6d65d2a806f |
children | 455db4624bce |
line wrap: on
line source
#/bin/sh # source definitions . `dirname $0`/config/definition.sh # functions command_check() { if !(which ${build_command} >& /dev/null;) then echo ${build_command} not found exit fi } build() { ${build_command} build $1 -o `dirname $1` ${build_template_option} } build_slides() { target_list=`find "$(dirname $0)/${slide_root_dirname}" -name "${build_target_filename}"` for target in ${target_list}; do build $target done } # main command_check build_slides