Develop and Download Open Source Software

Browse CVS Repository

Annotation of /samurai-graph/web/rsync.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (hide annotations) (download) (as text) (vendor branch)
Thu May 27 10:52:53 2004 UTC (19 years, 10 months ago) by orrisroot
Branch: samurai-graph
CVS Tags: first
Changes since 1.1: +0 -0 lines
File MIME type: text/x-sh
import dummy web contents into CVS

1 orrisroot 1.1 #!/bin/sh
2     RSYNC=/usr/local/bin/rsync
3     RSYNC_OPTS="-rlvzC --delete"
4     RSYNC_RSH=ssh
5     SRC=`dirname $0`/htdocs
6     DSTDIR=/home/groups/s/sa/samurai-graph
7     SFJP_SHELL_HOSTNAME=sf-usr-shell
8     SFJP_HOST=shell.sourceforge.jp
9    
10     if [ `hostname -s` = $SFJP_SHELL_HOSTNAME ]; then
11     DST=$DSTDIR
12     else
13     DST=$SFJP_HOST:$DSTDIR
14     fi
15    
16     if [ ! -d $SRC ]; then
17     echo "error : no web contents on $SRC"
18     exit 1;
19     fi
20     $RSYNC $RSYNC_OPTS $SRC $DST

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26