From 625439a0ebd8baf7aaa229a7d5bbdb81d3641f85 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 25 Jan 2019 17:52:48 -0200 Subject: Change client update: Use xml_footer.txt for music updates, and hard-code on each one of the four files --- update/create_music.sh | 1 + update/createnew.sh | 3 ++- update/update.sh | 1 + update/update_music.sh | 4 +++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/update/create_music.sh b/update/create_music.sh index d40afeb..b2a917a 100755 --- a/update/create_music.sh +++ b/update/create_music.sh @@ -24,6 +24,7 @@ echo " >resources.xml +echo '' >>resources.xml cp music.zip ../upload/ cp resources.xml ../upload/ diff --git a/update/createnew.sh b/update/createnew.sh index 10a83b9..b48b851 100755 --- a/update/createnew.sh +++ b/update/createnew.sh @@ -23,11 +23,12 @@ echo "TMW2.zip ${sum}" >resources2.txt echo ' ' >xml_header.txt -echo '' >xml_footer.txt +touch xml_footer.txt echo " " >> xml_header.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml +echo '' >>resources.xml cp TMW2.zip ../upload/ cp resources2.txt ../upload/ diff --git a/update/update.sh b/update/update.sh index 5a986ff..3d30f8f 100755 --- a/update/update.sh +++ b/update/update.sh @@ -30,6 +30,7 @@ if [ -f TMW2-${u1}..${u2}.zip ]; then echo " " >> xml_header.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml + echo '' >>resources.xml cp TMW2-${u1}..${u2}.zip ../upload/ cp resources2.txt ../upload/ diff --git a/update/update_music.sh b/update/update_music.sh index 7037be1..9bbf833 100755 --- a/update/update_music.sh +++ b/update/update_music.sh @@ -28,9 +28,11 @@ if [ -f music-${u1}..${u2}.zip ]; then mv ../muciscommit.txt ../muciscommit_old.txt echo ${head} >../muciscommit.txt sum=`adler32 music-${u1}..${u2}.zip | awk '{print $2}'` - echo " " >> xml_header.txt + + echo " " >> xml_footer.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml + echo '' >>resources.xml cp music-${u1}..${u2}.zip ../upload/ cp resources2.txt ../upload/ -- cgit v1.2.3-70-g09d2