comparison build.sh @ 4:ab0287707334

Support exec build scirpt in any working directory
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Thu, 30 Jan 2014 21:38:26 +0900
parents 635d8af3f795
children f6d65d2a806f
comparison
equal deleted inserted replaced
3:198eeda53d23 4:ab0287707334
15 exit 15 exit
16 fi 16 fi
17 } 17 }
18 18
19 build() { 19 build() {
20 ${command} build $1 -o `dirname $1` ${template_option}
21 }
20 22
21 ${command} build $1 -o `dirname $1` ${template_option} 23 build_slides() {
24 target_list=`find $(dirname $0) -name "${target_filename}"`
25 for target in ${target_list}; do
26 build $target
27 done
22 } 28 }
23 29
24 30
25 # main 31 # main
26 32
27 command_check 33 command_check
34 build_slides
28 35
29 target_list=`find . -name "${target_filename}"`
30 for target in ${target_list}; do
31 build $target
32 done