summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-25 17:52:48 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-25 17:52:48 -0200
commit625439a0ebd8baf7aaa229a7d5bbdb81d3641f85 (patch)
tree35d921400c53d57503988cfaea21861ddd8839ba
parentc79aa6caba863d93216c9875899a63dfb00a10d9 (diff)
downloadtools-625439a0ebd8baf7aaa229a7d5bbdb81d3641f85.tar.gz
tools-625439a0ebd8baf7aaa229a7d5bbdb81d3641f85.tar.bz2
tools-625439a0ebd8baf7aaa229a7d5bbdb81d3641f85.tar.xz
tools-625439a0ebd8baf7aaa229a7d5bbdb81d3641f85.zip
Change client update: Use xml_footer.txt for music updates, and hard-code </updates>
on each one of the four files
-rwxr-xr-xupdate/create_music.sh1
-rwxr-xr-xupdate/createnew.sh3
-rwxr-xr-xupdate/update.sh1
-rwxr-xr-xupdate/update_music.sh4
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 " <update type=\"music\" required=\"no\" file=\"music.zip\" hash=\"${sum
cp xml_header.txt resources.xml
cat xml_footer.txt >>resources.xml
+echo '</updates>' >>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 version="1.0"?>
<updates>' >xml_header.txt
-echo '</updates>' >xml_footer.txt
+touch xml_footer.txt
echo " <update type=\"data\" file=\"TMW2.zip\" hash=\"${sum}\" />" >> xml_header.txt
cp xml_header.txt resources.xml
cat xml_footer.txt >>resources.xml
+echo '</updates>' >>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 " <update type=\"data\" file=\"TMW2-${u1}..${u2}.zip\" hash=\"${sum}\" />" >> xml_header.txt
cp xml_header.txt resources.xml
cat xml_footer.txt >>resources.xml
+ echo '</updates>' >>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 " <update type=\"music\" required=\"no\" file=\"music-${u1}..${u2}.zip\" hash=\"${sum}\" description=\"TMW2 extra music\" />" >> xml_header.txt
+
+ echo " <update type=\"music\" required=\"no\" file=\"music-${u1}..${u2}.zip\" hash=\"${sum}\" description=\"TMW2 extra music\" />" >> xml_footer.txt
cp xml_header.txt resources.xml
cat xml_footer.txt >>resources.xml
+ echo '</updates>' >>resources.xml
cp music-${u1}..${u2}.zip ../upload/
cp resources2.txt ../upload/