X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Farchival%2Fupdate_fredmusicprime.sh;fp=scripts%2Fcustomize%2Ffred%2Fscripts%2Farchival%2Fupdate_fredmusicprime.sh;h=80bb07ba4ccba46f5a4cdc86112163238e0f452b;hb=8f403891425dfe131948be97cae4edf21f3f7869;hp=0000000000000000000000000000000000000000;hpb=a4d12589f1cd01826814842cde0b3eac95890bc9;p=feisty_meow.git diff --git a/scripts/customize/fred/scripts/archival/update_fredmusicprime.sh b/scripts/customize/fred/scripts/archival/update_fredmusicprime.sh new file mode 100644 index 00000000..80bb07ba --- /dev/null +++ b/scripts/customize/fred/scripts/archival/update_fredmusicprime.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# updates my little 1 TB "soapbox" style usb drive with items that it should contain. + +source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh" + +update_archive_drive "/media/fred/fredmusicprime" + +exit $? + +#####old#####old##### +#gone below. + +sep + +echo Target drive currently has... +ls "$TARGET_FOLDER" +if [ $? -ne 0 ]; then + echo "The target location '$TARGET_FOLDER' is not mounted currently, so cannot be updated." + exit 1 +fi + +# synch all our targets. +for currdir in $MAJOR_ARCHIVE_SOURCES; do + synch_directory_to_target "$currdir" "$TARGET_FOLDER/$(basename $currdir)"/ +done + +sep + +# update source code if present. +echo getting latest fred repositories... +pushd "$TARGET_FOLDER" +update_source_folders $SOURCECODE_HIERARCHY_LIST + +sep + +echo Updated all expected portions of the targets successfully. +