good abstraction of updater code
[feisty_meow.git] / scripts / customize / fred / scripts / archival / update_fredmusicprime.sh
1 #!/bin/bash
2
3 # updates my little 1 TB "soapbox" style usb drive with items that it should contain.
4
5 source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"
6
7 update_archive_drive "/media/fred/fredmusicprime"
8
9 exit $?
10
11 #####old#####old#####
12 #gone below.
13
14 sep
15
16 echo Target drive currently has...
17 ls "$TARGET_FOLDER"
18 if [ $? -ne 0 ]; then
19   echo "The target location '$TARGET_FOLDER' is not mounted currently, so cannot be updated."
20   exit 1
21 fi
22
23 # synch all our targets.
24 for currdir in $ARCHIVE_COLLECTION_LIST; do
25   synch_directory_to_target "$currdir" "$TARGET_FOLDER/$(basename $currdir)"/
26 done
27
28 sep
29
30 # update source code if present.
31 echo getting latest fred repositories...
32 pushd "$TARGET_FOLDER"
33 update_source_folders $SOURCE_HIERARCHY_LIST
34
35 sep
36
37 echo Updated all expected portions of the targets successfully.
38