summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-25 13:08:15 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-25 13:08:15 -0300
commit6042f741ddcf5068d8c4654accb81709b7f22b45 (patch)
treebbe8bbe848e6c3f382cc682a800781ada4c82ef9
parent747eec0c84232e5ca22418809baaba3a6b740be7 (diff)
downloadtools-6042f741ddcf5068d8c4654accb81709b7f22b45.tar.gz
tools-6042f741ddcf5068d8c4654accb81709b7f22b45.tar.bz2
tools-6042f741ddcf5068d8c4654accb81709b7f22b45.tar.xz
tools-6042f741ddcf5068d8c4654accb81709b7f22b45.zip
Debug
-rwxr-xr-xupdate/createnew.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/update/createnew.sh b/update/createnew.sh
index 8e7b77d..e09ec85 100755
--- a/update/createnew.sh
+++ b/update/createnew.sh
@@ -12,15 +12,21 @@ mkdir files
mkdir upload
rm files/TMW2.zip
+echo "\033[1mls -lh ../..\033[0m"
+ls -lh ../..
+echo "\033[1mcd ../../clientdata\033[0m"
cd ../../clientdata
+echo "\033[1mGenerating zip file...\033[0m"
find -iregex ".+[.]\(xml\|png\|jpg\|tmx\|ogg\|txt\|po\|tsx\)" -exec touch --date=2015-01-01 {} \;
find -iregex ".+[.]\(xml\|png\|jpg\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ ../tools/update/files/TMW2.zip
git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/commit.txt
+echo "\033[1mcd $dir/files\033[0m"
cd $dir/files
sum=`adler32 TMW2.zip | awk '{print $2}'`
echo "TMW2.zip ${sum}" >resources2.txt
+echo "\033[1mGenerating XMLs\033[0m"
echo '<?xml version="1.0"?>
<updates>' >xml_header.txt
touch xml_footer.txt
@@ -32,6 +38,7 @@ cat xml_footer.txt >>resources.xml
cat xml_mods.txt >>resources.xml
echo '</updates>' >>resources.xml
+echo "\033[1mPublishing changes...\033[0m"
cp TMW2.zip ../upload/
cp resources2.txt ../upload/
cp resources.xml ../upload/