File: rsync2here.sh

package info (click to toggle)
libjogl2-java 2.0-rc5-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,308 kB
  • sloc: java: 113,441; ansic: 33,817; xml: 4,673; objc: 1,733; sh: 1,261; cpp: 139; awk: 46; makefile: 21
file content (28 lines) | stat: -rwxr-xr-x 686 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

# USESSH="-e ssh"

SOURCE=sven@192.168.0.52::PROJECTS
#DEST=/usr/local/projects/JOGL
DEST=/cygdrive/c/JOGL

function my_rsync()
{
    # rsync $USESSH -av --perms --delete-after --exclude 'build*/' $SOURCE/JOGL/$1 $2
    rsync $USESSH -av --perms --delete-after --exclude 'build*/' $SOURCE/JOGL/$1 $2
}

function do_rsync()
{
    my_rsync gluegen            $DEST/
    my_rsync jogl               $DEST/
    my_rsync jogl-demos         $DEST/
    my_rsync lib                $DEST/
    my_rsync lib-windows-x86    $DEST/
    my_rsync lib-linux-x86      $DEST/
    my_rsync lib-linux-x86_64   $DEST/
    my_rsync setenv*            $DEST/
}

do_rsync 2>&1 | tee -a rsync.log