From 181fb71b1c6c4786f966c4ae73b22b1391b5c7e5 Mon Sep 17 00:00:00 2001 From: Ledmitz Date: Sat, 31 Dec 2022 00:09:55 -0400 Subject: Default local directory needed to be updated, since the server recently changed update locations --- README.md | 4 +++- tmw-cmp-update | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9c062ba..ccbf03c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ TMW Compare Update ## Description This script will update files from the M+ local directory to the TMW extracted directory only if the file exists there. cmp is used to compare files and overwrites the TMW file -with the local one only if they differ. +with the local one only if they differ. 2 log files are also written: file on TMW missing from local and files in local missing from TMW. This helps to keep track of what work +needs to be done later. +* - It helped me to identify files that needed to be renamed in local and then I ran the script a second time to copy them. It also helps to identify missing content. ## Usage Just read the script comments and change file location variables if needed diff --git a/tmw-cmp-update b/tmw-cmp-update index a141762..011b704 100755 --- a/tmw-cmp-update +++ b/tmw-cmp-update @@ -29,8 +29,8 @@ done ###Variables you may want to change### #The (sub)directory where the TMW files extracted from TMW.zip reside. I prefer to make a backup of a directory and work from there. (Default "$HOME/Desktop/TMW") TMW_DIR="$HOME/Desktop/TMW" -#The (sub)directory where local files are found. (Default: "$HOME/.local/share/mana/updates/themanaworld.github.io/tmwa-server-data/local") -LOCAL_DIR="$HOME/.local/share/mana/updates/themanaworld.github.io/tmwa-server-data/local" +#The (sub)directory where local files are found. (Default: "$HOME/.local/share/mana/updates/updates.tmw2.org/legacy/local") +LOCAL_DIR="$HOME/.local/share/mana/updates/updates.tmw2.org/legacy/local" #Log for files that exist in TMW, but not in local MISSING_FROM_LOCAL="$HOME/Desktop/missing_from_local.txt" #Log for files that exist in local, but not in TMW -- cgit v1.2.3-70-g09d2