diff options
-rwxr-xr-x | update/create_music.sh | 1 | ||||
-rwxr-xr-x | update/createnew.sh | 3 | ||||
-rwxr-xr-x | update/update.sh | 1 | ||||
-rwxr-xr-x | 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 " <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/ |