From 6042f741ddcf5068d8c4654accb81709b7f22b45 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 Oct 2022 13:08:15 -0300 Subject: Debug --- update/createnew.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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_header.txt touch xml_footer.txt @@ -32,6 +38,7 @@ cat xml_footer.txt >>resources.xml cat xml_mods.txt >>resources.xml echo '' >>resources.xml +echo "\033[1mPublishing changes...\033[0m" cp TMW2.zip ../upload/ cp resources2.txt ../upload/ cp resources.xml ../upload/ -- cgit v1.2.3-60-g2f50