#!/bin/sh
#
# Copyright 2011-2012 Shin-ya MURAKAMI <murashin _at_ gfd-dennou.org>
#

# 
# pull data from repository and rsync into public_html
#
# example:
#   cd ~/work1/www && \
#   git pull ../www.git && \
#   rsync -v -a --delete --exclude .git --exclude SIGEN.htm ~/work1/www/ /GFD_Dennou_Club/ftp/arch/murashin && \
#   chmod 600 /GFD_Dennou_Club/ftp/arch/murashin/Makefile
#

WWWDIR="/GFD_Dennou_Club/ftp/arch/murashin"
REPONAME="www"
REPODIR="$HOME/work1/$REPONAME"

cd $REPODIR && git pull ../${REPONAME}.git && rsync -v -a --delete --exclude .git --exclude distfiles/rpmbuild --exclude "images" --exclude "movie"  --exclude "temp"  --exclude "SIGEN.htm" $REPODIR/ $WWWDIR && chmod 600 $WWWDIR/Makefile
