From c9e028d2a26e12ebac7c059aa5c0d4b8f935f3fe Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 28 Oct 2020 13:56:32 -0300 Subject: Rename zip files (Ledz asked) --- update/createnew.sh | 12 ++++++------ update/update.sh | 12 ++++++------ update/update_music.sh | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/update/createnew.sh b/update/createnew.sh index 8997e3e..84050c7 100755 --- a/update/createnew.sh +++ b/update/createnew.sh @@ -12,25 +12,25 @@ $CC -lz adler32.c -o adler32 mkdir files mkdir upload -rm files/evol.zip +rm files/revolt.zip cd ../../client-data find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -exec touch --date=2015-01-01 {} \; -find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ ../tools/update/files/evol.zip +find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ ../tools/update/files/revolt.zip git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/commit.txt cd $dir/files -sum=`../adler32 1 evol.zip` -echo "evol.zip ${sum}" >resources2.txt +sum=`../adler32 1 revolt.zip` +echo "revolt.zip ${sum}" >resources2.txt echo ' ' >xml_header.txt echo '' >xml_footer.txt -echo " " >> xml_header.txt +echo " " >> xml_header.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml -cp evol.zip ../upload/ +cp revolt.zip ../upload/ cp resources2.txt ../upload/ cp resources.xml ../upload/ cp ../news.txt ../upload/ diff --git a/update/update.sh b/update/update.sh index 922c59b..37882d3 100755 --- a/update/update.sh +++ b/update/update.sh @@ -20,19 +20,19 @@ 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 "[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" | sort | uniq | \ - xargs zip -X -9 -r ../tools/update/files/evol-${u1}..${u2}.zip + xargs zip -X -9 -r ../tools/update/files/revolt-${u1}..${u2}.zip cd $dir/files -if [ -f evol-${u1}..${u2}.zip ]; then +if [ -f revolt-${u1}..${u2}.zip ]; then mv ../commit.txt ../commit_old.txt echo ${head} >../commit.txt - sum=`../adler32 1 evol-${u1}..${u2}.zip` - echo "evol-${u1}..${u2}.zip ${sum}" >>resources2.txt - echo " " >> xml_header.txt + sum=`../adler32 1 revolt-${u1}..${u2}.zip` + echo "revolt-${u1}..${u2}.zip ${sum}" >>resources2.txt + echo " " >> xml_header.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml - cp evol-${u1}..${u2}.zip ../upload/ + cp revolt-${u1}..${u2}.zip ../upload/ cp resources2.txt ../upload/ cp resources.xml ../upload/ cp ../news.txt ../upload diff --git a/update/update_music.sh b/update/update_music.sh index b9e0256..7954b45 100755 --- a/update/update_music.sh +++ b/update/update_music.sh @@ -29,7 +29,7 @@ if [ -f evol-${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 + echo " " >> xml_header.txt cp xml_header.txt resources.xml cat xml_footer.txt >>resources.xml -- cgit v1.2.3-70-g09d2