3 # compares the soapbox with the real archive to see if any older stuff might be
4 # left behind. if it's got a less than in front, then it's only on the soapbox drive
5 # now rather than the pc's hard drive.
7 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
9 function compare_archives_with_target()
11 local target="$1"; shift
13 echo compare arch with target: $target
15 for currdir in $MAJOR_ARCHIVE_SOURCES; do
17 echo "comparing '$currdir' with target '$target', where 'less thans' are on the target..."
18 echo would do-- compare_dirs "$target/$(basename $currdir)" "$currdir"
22 # decide which drive to compare.
24 if [ -z "$targets" ]; then
25 targets=($($(whichable ls) -1 /media/$USER/*))
26 if [ ${#targets[@]} -gt 1 ]; then
28 Please provide a media drive name on the command line, because more than
29 one possibility exists.
35 echo "comparing the media drive '${targets[0]}' against local archives."
37 compare_archives_with_target "/media/$USER/${targets[0]}"