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.3 - (hide annotations) (download) (as text)
Thu Oct 7 01:07:34 2004 UTC (19 years, 6 months ago) by orrisroot
Branch: MAIN
Changes since 1.2: +1 -0 lines
File MIME type: text/x-sh
defined script variable 'RSYNC_RSH' to environemnt variable.

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

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