summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-28 13:56:32 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-28 13:56:32 -0300
commitc9e028d2a26e12ebac7c059aa5c0d4b8f935f3fe (patch)
treef93042f9c156ad308ac9625e0c301ac0fbafe0b6
parentcb4e607953f91c21c67336e46494f3a0a2cec94a (diff)
downloadevol-tools-c9e028d2a26e12ebac7c059aa5c0d4b8f935f3fe.tar.gz
evol-tools-c9e028d2a26e12ebac7c059aa5c0d4b8f935f3fe.tar.bz2
evol-tools-c9e028d2a26e12ebac7c059aa5c0d4b8f935f3fe.tar.xz
evol-tools-c9e028d2a26e12ebac7c059aa5c0d4b8f935f3fe.zip
Rename zip files (Ledz asked)
-rwxr-xr-xupdate/createnew.sh12
-rwxr-xr-xupdate/update.sh12
-rwxr-xr-xupdate/update_music.sh2
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 version="1.0"?>
<updates>' >xml_header.txt
echo '</updates>' >xml_footer.txt
-echo " <update type=\"data\" file=\"evol.zip\" hash=\"${sum}\" />" >> xml_header.txt
+echo " <update type=\"data\" file=\"revolt.zip\" hash=\"${sum}\" />" >> 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 " <update type=\"data\" file=\"evol-${u1}..${u2}.zip\" hash=\"${sum}\" />" >> xml_header.txt
+ sum=`../adler32 1 revolt-${u1}..${u2}.zip`
+ echo "revolt-${u1}..${u2}.zip ${sum}" >>resources2.txt
+ echo " <update type=\"data\" file=\"revolt-${u1}..${u2}.zip\" hash=\"${sum}\" />" >> 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 " <update type=\"music\" required=\"no\" file=\"music-${u1}..${u2}.zip\" hash=\"${sum}\" description=\"Evol music\" />" >> xml_header.txt
+ echo " <update type=\"music\" required=\"no\" file=\"music-${u1}..${u2}.zip\" hash=\"${sum}\" description=\"TMW music\" />" >> xml_header.txt
cp xml_header.txt resources.xml
cat xml_footer.txt >>resources.xml