diff options
Diffstat (limited to 'update')
-rwxr-xr-x | update/create_music.sh | 2 | ||||
-rwxr-xr-x | update/createnew.sh | 2 | ||||
-rwxr-xr-x | update/update.sh | 2 | ||||
-rwxr-xr-x | update/update_music.sh | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/update/create_music.sh b/update/create_music.sh index 1e00263..151c09e 100755 --- a/update/create_music.sh +++ b/update/create_music.sh @@ -18,7 +18,7 @@ find -iregex ".+[.]\(ogg\)" -printf "%P\n" | zip -X -@ ../tools/update/files/mus git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/musiccommit.txt cd $dir/files -sum=`adler32 music.zip` +sum=`adler32 music.zip` | awk '{print $2}' echo " <update type=\"music\" required=\"no\" file=\"music.zip\" hash=\"${sum}\" description=\"Evol music\" />" >> xml_header.txt diff --git a/update/createnew.sh b/update/createnew.sh index 8f242ec..6f2f07e 100755 --- a/update/createnew.sh +++ b/update/createnew.sh @@ -18,7 +18,7 @@ find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/commit.txt cd $dir/files -sum=`adler32 TMW2.zip` +sum=`adler32 TMW2.zip` | awk '{print $2}' echo "TMW2.zip ${sum}" >resources2.txt echo '<?xml version="1.0"?> diff --git a/update/update.sh b/update/update.sh index 2a446db..7cf8145 100755 --- a/update/update.sh +++ b/update/update.sh @@ -25,7 +25,7 @@ cd $dir/files if [ -f TMW2-${u1}..${u2}.zip ]; then mv ../commit.txt ../commit_old.txt echo ${head} >../commit.txt - sum=`adler32 1 TMW2-${u1}..${u2}.zip` + sum=`adler32 TMW2-${u1}..${u2}.zip` | awk '{print $2}' echo "TMW2-${u1}..${u2}.zip ${sum}" >>resources2.txt echo " <update type=\"data\" file=\"TMW2-${u1}..${u2}.zip\" hash=\"${sum}\" />" >> xml_header.txt cp xml_header.txt resources.xml diff --git a/update/update_music.sh b/update/update_music.sh index aca1506..ac3bbe5 100755 --- a/update/update_music.sh +++ b/update/update_music.sh @@ -24,11 +24,11 @@ git log --name-status ${previous}..${head} \ exit cd $dir/files -if [ -f evol-${u1}..${u2}.zip ]; then +if [ -f music-${u1}..${u2}.zip ]; then mv ../muciscommit.txt ../muciscommit_old.txt echo ${head} >../muciscommit.txt - sum=`../adler32 1 music-${u1}..${u2}.zip` - echo " <update type=\"music\" required=\"no\" file=\"music-${u1}..${u2}.zip\" hash=\"${sum}\" description=\"Evol 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 music\" />" >> xml_header.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml |