summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLedmitz <smoothshifter@tuta.io>2022-12-31 00:09:55 -0400
committerLedmitz <smoothshifter@tuta.io>2022-12-31 00:09:55 -0400
commit181fb71b1c6c4786f966c4ae73b22b1391b5c7e5 (patch)
treea6e28acc2f7454d8cf65cddefe1145784cfeebb3
parent95734bf740a208edbbb1f40ab4b1bfc4ceaa3628 (diff)
downloadtmw-cmp-update-181fb71b1c6c4786f966c4ae73b22b1391b5c7e5.tar.gz
tmw-cmp-update-181fb71b1c6c4786f966c4ae73b22b1391b5c7e5.tar.bz2
tmw-cmp-update-181fb71b1c6c4786f966c4ae73b22b1391b5c7e5.tar.xz
tmw-cmp-update-181fb71b1c6c4786f966c4ae73b22b1391b5c7e5.zip
Default local directory needed to be updated, since the server recently changed update locations
-rw-r--r--README.md4
-rwxr-xr-xtmw-cmp-update4
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