3 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
5 # given a location in the filesystem, we will go to that location and attempt to
6 # update any revision control repositories stored there to the latest versions.
7 function update_source_folders()
10 if [ ! -d "$folder" ]; then
11 echo "The folder '$folder' does not exist, so skipping repository update there."
14 echo getting latest codes in $folder...
17 echo Changing to the folder $folder failed.
20 bash "$FEISTY_MEOW_SCRIPTS/rev_control/rev_checkin.sh"
22 echo Checking out the latest codes has failed somehow for $folder.
28 # this attempts to copy all the contents in a folder called "from" into a folder
29 # called "to". it's a failure for the "from" folder to not exist, but the "to"
30 # is allowed to not exist (in which case we don't try to synch to it).
31 function synch_directory_to_target()
33 local from="$1"; shift
38 if [ ! -d "$from" ]; then
39 echo "skipping synch on missing source directory $from; this is not normal!"
42 if [ ! -d "$to" ]; then
43 echo "skipping synch into non-existent directory $to"
47 echo "synching from $from into $to"
48 netcp "$from"/* "$to"/
50 echo "The synchronization of $from into $to has failed."