Mercurial > hg > Members > atton > seminar_slides
changeset 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 | 8cd28e3368fd |
files | new_slide.sh |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/new_slide.sh Fri Jan 31 14:10:07 2014 +0900 +++ b/new_slide.sh Fri Jan 31 17:48:56 2014 +0900 @@ -31,11 +31,12 @@ # main slide_dirname=`dirname_from_day_of_the_week ${1}` -dir_full_path="${slide_root_dirname}/${slide_dirname}" +dir_full_path="`dirname $0`/${slide_root_dirname}/${slide_dirname}" slide_full_path="${dir_full_path}/${slide_name}" +template_full_path="`dirname $0`/${slide_template_file}" mkdir -p ${dir_full_path} if !([ -f ${slide_full_path} ];) then - cp ${slide_template_file} ${slide_full_path} + cp ${template_full_path} ${slide_full_path} fi echo ${slide_full_path}