diff options
author | jesusalva <cpntb1@ymail.com> | 2018-02-23 01:11:19 -0300 |
---|---|---|
committer | jesusalva <cpntb1@ymail.com> | 2018-02-23 01:11:19 -0300 |
commit | 07d6ebe886a1164e385d7dab21d1fdb55ede0e28 (patch) | |
tree | 85279c1cc5b6208eddf27cb7abe53deeb0f0440e /update/update_music.sh | |
parent | f3d80d91307c6b37bde58588aeb72ea7f4a58047 (diff) | |
download | tools-07d6ebe886a1164e385d7dab21d1fdb55ede0e28.tar.gz tools-07d6ebe886a1164e385d7dab21d1fdb55ede0e28.tar.bz2 tools-07d6ebe886a1164e385d7dab21d1fdb55ede0e28.tar.xz tools-07d6ebe886a1164e385d7dab21d1fdb55ede0e28.zip |
Client update
Diffstat (limited to 'update/update_music.sh')
-rwxr-xr-x | update/update_music.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/update/update_music.sh b/update/update_music.sh index ac3bbe5..7037be1 100755 --- a/update/update_music.sh +++ b/update/update_music.sh @@ -19,16 +19,16 @@ u1=`echo ${previous} | cut -c 1-7` u2=`echo ${head} | cut -c 1-7` git log --name-status ${previous}..${head} \ | awk '/^(A|M)\t/ {print $2}' -# grep -e "[.]\(ogg\)" | sort | uniq | \ -# xargs zip -X -9 -r ../../evol-tools/update/files/music-${u1}..${u2}.zip -exit + grep -e "[.]\(ogg\|mp3\)" | sort | uniq | \ + xargs zip -X -9 -r ../../tools/update/files/music-${u1}..${u2}.zip +#exit cd $dir/files 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 music\" />" >> xml_header.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 cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml |