diff options
Diffstat (limited to 'update/createnew.sh')
-rwxr-xr-x | update/createnew.sh | 7 |
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/ |