generalized
[feisty_meow.git] / scripts / customize / fred / scripts / archival / euphrosyne_comparator.sh
1 #!/bin/bash
2
3 # runs through all the local archives on this host to make sure nothing is
4 # different when compared with the mainline versions on the specified host.
5
6 target="$1"; shift
7
8 if [ -z "$target" ]; then
9   target=wildmutt
10   #target=curie
11 fi
12
13 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
14
15 function do_a_folder_compare()
16 {
17   local archname="$1"; shift
18   local dest="$1"; shift
19 #hmmm: error checking?
20
21   if [ -d "/z/$archname" ]; then
22     sep 14
23     echo "Comparing $archname folder..."
24     compare_dirs /z/${archname} ${dest}:/z/${archname}
25     sep 14
26   fi
27 }
28
29 for archicle in \
30   basement \
31   imaginations \
32   musix \
33   toaster \
34   walrus \
35 ; do
36   do_a_folder_compare $archicle $target
37 done
38
39 #cruft:
40 #sep 14
41 #echo "Comparing basement folder..."
42 #compare_dirs /z/basement ${target}:/z/basement
43 #sep 14
44 #
45 #sep 14
46 #echo "Comparing imaginations folder..."
47 #compare_dirs /z/imaginations ${target}:/z/imaginations
48 #sep 14
49 #
50 #sep 14
51 #echo "Comparing musix folder..."
52 #compare_dirs /z/musix ${target}:/z/musix
53 #sep 14
54 #
55 #sep 14
56 #echo "Comparing walrus folder..."
57 #compare_dirs /z/walrus ${target}:/z/walrus
58 #sep 14