view save_generated_slides.sh @ 23:d23e83bd3e70

Imporve sync script
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Tue, 04 Feb 2014 23:25:42 +0900
parents 0c75a6b0ef8e
children 4699c287d57d
line wrap: on
line source

#!/bin/sh

cd $(dirname $0)

. config/definition.sh

rsync -ax --delete --exclude .hg ${slide_root_dirname} ${save_repository_path}

mkdir -p ${save_directory_path}
cd ${save_directory_path}

hg addremove
hg add
hg commit -m "auto-Update generated slides by script"
echo "commited generated slides"