about to spring some code from the compare file into archiver parts.
# based on some of the mount configurations available at home or abroad.
# moo and unmoo mount the local folders i use most.
-define_yeti_alias moo='check_mount /z/stuffing ; check_mount /z/walrus ; check_mount /z/chunky ; check_mount /z/fredgrid'
-define_yeti_alias unmoo='sudo umount /z/stuffing ; sudo umount /z/walrus ; sudo umount /z/chunky ; sudo umount /z/fredgrid'
+#no longer used. we are doing mostly full directory stores without nfs mounts these days.
+#define_yeti_alias moo='check_mount /z/stuffing ; check_mount /z/walrus ; check_mount /z/chunky ; check_mount /z/fredgrid'
+#define_yeti_alias unmoo='sudo umount /z/stuffing ; sudo umount /z/walrus ; sudo umount /z/chunky ; sudo umount /z/fredgrid'
# load in the gffs build scripts.
-source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh"
+# not currently used. this probably was adding a bit of startup time.
+#source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh"
source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
-for currdir in basement imaginations musix walrus; do
- sep
- echo "comparing $currdir where 'less than' is on the soapbox..."
- compare_dirs /media/fred/soapboxdrive/$currdir /z/$currdir
-done
+function compare_archives_with_target()
+{
+ local target="$1"; shift
+
+ for currdir in $ARCHIVE_COLLECTION_LIST; do
+ sep
+ echo "comparing '$currdir' with target '$target', where 'less thans' are on the target..."
+ compare_dirs "$target/$(basename $currdir)" "$currdir"
+ done
+}
+
+compare_archives_with_target /media/fred/soapboxdrive
sep
+
exit 1
fi
-#function synch_directory_to_target()
-#{
-# local from="$1"; shift
-# local to="$1"; shift
-#
-# sep
-#
-# if [ ! -d "$from" ]; then
-# echo "skipping synch one missing source directory $from; this is not normal!"
-# fi
-# if [ ! -d "$to" ]; then
-# echo "skipping synch into non-existent directory $to"
-# fi
-#
-# echo "synching from $from into $to"
-# netcp "$from"/* "$to"/
-# if [ $? -ne 0 ]; then
-# echo "The synchronization of $from into $to has failed."
-# exit 1
-# fi
-#}
-
-# do all our targets.
+# synch all our targets.
for currdir in $ARCHIVE_COLLECTIONS_LIST; do
synch_directory_to_target "$currdir" "$TARGET_FOLDER/$(basename $currdir)"/
-# sep
-# echo "synching $currdir..."
-# netcp $currdir/* /media/fred/soapboxdrive/$currdir/
-# if [ $? -ne 0 ]; then
-# echo "The $currdir sync failed."
-# exit 1
-# fi
done
sep
+# update source code if present.
echo getting latest fred repositories...
pushd "$TARGET_FOLDER"
update_source_folders extra_brain