comparison new_slide.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 213c5de5d47d
comparison
equal deleted inserted replaced
6:f6d65d2a806f 7:e0c4a349c94f
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="${slide_root_dirname}/${slide_dirname}"
35 slide_full_path="${dir_full_path}/${slide_name}" 35 slide_full_path="${dir_full_path}/${slide_name}"
36 36
37 mkdir -p ${dir_full_path} 37 mkdir -p ${dir_full_path}
38 touch ${slide_full_path} 38 if !([ -f ${slide_full_path} ];) then
39 cp ${slide_template_file} ${slide_full_path}
40 fi
39 echo ${slide_full_path} 41 echo ${slide_full_path}
40