summaryrefslogtreecommitdiff
path: root/update
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-04 07:31:48 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-04 07:31:48 -0300
commit29a9f39efd9edad19cf44482a3dc2be7acd6046a (patch)
tree7b2a5fb384f34665779bf4cd9e14e4b757003fdf /update
parent4a87519723efcd2c9f2705890dac9ead85bb36aa (diff)
downloadtools-29a9f39efd9edad19cf44482a3dc2be7acd6046a.tar.gz
tools-29a9f39efd9edad19cf44482a3dc2be7acd6046a.tar.bz2
tools-29a9f39efd9edad19cf44482a3dc2be7acd6046a.tar.xz
tools-29a9f39efd9edad19cf44482a3dc2be7acd6046a.zip
Make updater code more sturdy
Diffstat (limited to 'update')
-rwxr-xr-xupdate/pseudo_update.sh2
-rwxr-xr-xupdate/update.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/update/pseudo_update.sh b/update/pseudo_update.sh
index 03b287c..49ae5c9 100755
--- a/update/pseudo_update.sh
+++ b/update/pseudo_update.sh
@@ -11,7 +11,7 @@ cd ../../client-data
head=`git log --pretty=oneline -n 1 | awk '{print $1}'`
u1=`echo ${previous} | cut -c 1-7`
u2=`echo ${head} | cut -c 1-7`
-git log --name-status ${previous}..${head} | awk '/^(A|M)\t/ {print $2}' | \
+git diff --name-status ${previous} HEAD | awk '/^(A|M)\t/ {print $2}; /^(R...)\t/ {print $3}' | \
grep -e "[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" | sort | uniq | \
xargs zip -X -9 -r ../tools/update/upload/Bugfix-${u1}..${u2}.zip
diff --git a/update/update.sh b/update/update.sh
index 820954e..d0b996f 100755
--- a/update/update.sh
+++ b/update/update.sh
@@ -17,7 +17,7 @@ cd ../../client-data
head=`git log --pretty=oneline -n 1 | awk '{print $1}'`
u1=`echo ${previous} | cut -c 1-7`
u2=`echo ${head} | cut -c 1-7`
-git log --name-status ${previous}..${head} | awk '/^(A|M)\t/ {print $2}' | \
+git diff --name-status ${previous} HEAD | awk '/^(A|M)\t/ {print $2}; /^(R...)\t/ {print $3}' | \
grep -e "[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" | sort | uniq | \
xargs zip -X -9 -r ../tools/update/files/TMW2-${u1}..${u2}.zip