diff options
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | tmw-cmp-update | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -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 |