#!/bin/sh

# Run this script often to keep your tool macros up to date.
#
# Save this file to c:/cygwin/usr/local/bin
#
# Set execute permission with the command:
#
#	chmod +x /usr/local/bin/getmacs
#
#
# This Bourne shell script downloads a mirror image of the macro 
# library from the server. rsync is smart and only downloads missing
# or changed files (see the rsync man page)
#
# Any local files that exist in the $MAC path but not on the server
# will be deleted as specified by the "--delete" option to rsync.
#
# David Edwards <david@btdt.org> Sun May 15 16:48:14 EDT 2005


# Change the following line to the directory where you keep the tool
# library:
MAC=c:/ansys/apdl


if [ ! -d $MAC ]; then
	mkdir -p $MAC
fi

rsync -va --delete btdt.org::ansys $MAC

