Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/web/rsync.sh

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Jan 25 06:10:27 2005 UTC (19 years, 1 month ago) by nilton
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +8 -2 lines
File MIME type: text/x-sh
modified upload script 'rsync.sh' for cygwin.

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

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