# HG changeset patch # User Yasutaka Higa # Date 1391085506 -32400 # Node ID ab0287707334c595834f3a778eaaff4f47a56b95 # Parent 198eeda53d238a34375637a5eed96091db9428ec Support exec build scirpt in any working directory diff -r 198eeda53d23 -r ab0287707334 build.sh --- a/build.sh Thu Jan 30 15:36:47 2014 +0900 +++ b/build.sh Thu Jan 30 21:38:26 2014 +0900 @@ -17,16 +17,19 @@ } build() { + ${command} build $1 -o `dirname $1` ${template_option} +} - ${command} build $1 -o `dirname $1` ${template_option} +build_slides() { + target_list=`find $(dirname $0) -name "${target_filename}"` + for target in ${target_list}; do + build $target + done } # main command_check +build_slides -target_list=`find . -name "${target_filename}"` -for target in ${target_list}; do - build $target -done