From b8c5eae7dbad2d2ca7b198cb76d2131a0bfe518b Mon Sep 17 00:00:00 2001 From: jesusalva Date: Fri, 16 Feb 2018 12:51:43 -0200 Subject: Fix broken updaters with AWK --- update/create_music.sh | 2 +- update/createnew.sh | 2 +- update/update.sh | 2 +- 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 " " >> 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 ' 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 " " >> 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 " " >> xml_header.txt + sum=`adler32 music-${u1}..${u2}.zip` | awk '{print $2}' + echo " " >> xml_header.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml -- cgit v1.2.3-70-g09d2