comparison new_slide.sh @ 8:213c5de5d47d

Fix path for new slide template
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 31 Jan 2014 17:48:56 +0900
parents e0c4a349c94f
children 62d6bd64af0a
comparison
equal deleted inserted replaced
7:e0c4a349c94f 8:213c5de5d47d
29 } 29 }
30 30
31 # main 31 # main
32 32
33 slide_dirname=`dirname_from_day_of_the_week ${1}` 33 slide_dirname=`dirname_from_day_of_the_week ${1}`
34 dir_full_path="${slide_root_dirname}/${slide_dirname}" 34 dir_full_path="`dirname $0`/${slide_root_dirname}/${slide_dirname}"
35 slide_full_path="${dir_full_path}/${slide_name}" 35 slide_full_path="${dir_full_path}/${slide_name}"
36 template_full_path="`dirname $0`/${slide_template_file}"
36 37
37 mkdir -p ${dir_full_path} 38 mkdir -p ${dir_full_path}
38 if !([ -f ${slide_full_path} ];) then 39 if !([ -f ${slide_full_path} ];) then
39 cp ${slide_template_file} ${slide_full_path} 40 cp ${template_full_path} ${slide_full_path}
40 fi 41 fi
41 echo ${slide_full_path} 42 echo ${slide_full_path}