#!/bin/sh

#------------------------------------------------------------------------------ 
# Rsync Update Module
# filename:  lib_update_from_srfs3.sh
# 
#	by Jeremy Webb
#	
#	Rev 1.0, July 25, 2007
#
#	This utility is intended to synchronize remote folders. An example of 
#	using the lib_update_from_srfs3.sh command is shown below:
#
#	lib_update_from_srfs3 jwwebb sch_rev2/
#
#	Revision History:
#		1.0	07/25/2007	Initial release
#
#	Please report bugs, errors, etc.
#------------------------------------------------------------------------------



#echo "rsync -avz $USER@srfs3:/data/share/mixsig/PCB_Libraries/$DIR ./$DIR"

#rsync -avz $USER@srfs3:/data/share/mixsig/PCB_Libraries/$DIR ./$DIR

if [ $# -ne 2 ]
then 
        echo "Error in $0 - Invalid Argument Count"
        echo ""
        echo "usage: ./lib_update_from_srfs3.sh [user] [dir]"
        echo ""
        exit
else
        USER=$1
        DIR=$2
        echo "rsync -avz $USER@srfs3:/data/share/mixsig/PCB_Libraries/$DIR ./$DIR"
        echo ""
        rsync -avz $USER@srfs3:/data/share/mixsig/PCB_Libraries/$DIR ./$DIR
        echo ""
fi


