summaryrefslogtreecommitdiff
path: root/update
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-11 18:48:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-11 21:27:37 +0300
commit028b54e1e0d5e50884641313ee07baed9ff964ac (patch)
tree40fc749d7aad4a5fefa6de2662dcaadf7001aeb3 /update
parent186e81014833dc57ca7bbb0ebd011ed2e6c22917 (diff)
downloadevol-tools-028b54e1e0d5e50884641313ee07baed9ff964ac.tar.gz
evol-tools-028b54e1e0d5e50884641313ee07baed9ff964ac.tar.bz2
evol-tools-028b54e1e0d5e50884641313ee07baed9ff964ac.tar.xz
evol-tools-028b54e1e0d5e50884641313ee07baed9ff964ac.zip
update: update dirs.
Diffstat (limited to 'update')
-rwxr-xr-xupdate/addmods.sh2
-rwxr-xr-xupdate/create_music.sh6
-rwxr-xr-xupdate/createnew.sh6
-rwxr-xr-xupdate/update.sh4
-rwxr-xr-xupdate/update_music.sh2
5 files changed, 10 insertions, 10 deletions
diff --git a/update/addmods.sh b/update/addmods.sh
index 1609d45..6a4b1c0 100755
--- a/update/addmods.sh
+++ b/update/addmods.sh
@@ -13,7 +13,7 @@ mkdir upload
previous=`cat commit.txt`
-cd ../../gittorious/clientdata-beta/mods
+cd ../../client-data/mods
FILES=`ls`
diff --git a/update/create_music.sh b/update/create_music.sh
index 0263c27..a0f3264 100755
--- a/update/create_music.sh
+++ b/update/create_music.sh
@@ -12,9 +12,9 @@ mkdir files
mkdir upload
rm files/music.zip
-cd ../../gittorious/evol-music
-find -iregex ".+[.]\(ogg\)" -printf "%P\n" | zip -@ ../../evol-tools/update/files/music.zip
-git log --pretty=oneline -n 1 | awk '{print $1}' >../../evol-tools/update/musiccommit.txt
+cd ../../music
+find -iregex ".+[.]\(ogg\)" -printf "%P\n" | zip -@ ../tools/update/files/music.zip
+git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/musiccommit.txt
cd $dir/files
sum=`../adler32 1 music.zip`
diff --git a/update/createnew.sh b/update/createnew.sh
index a93858a..0b4a484 100755
--- a/update/createnew.sh
+++ b/update/createnew.sh
@@ -12,9 +12,9 @@ mkdir files
mkdir upload
rm files/evol.zip
-cd ../../gittorious/clientdata-beta
-find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -@ ../../evol-tools/update/files/evol.zip
-git log --pretty=oneline -n 1 | awk '{print $1}' >../../evol-tools/update/commit.txt
+cd ../../client-data
+find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -@ ../tools/update/files/evol.zip
+git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/commit.txt
cd $dir/files
sum=`../adler32 1 evol.zip`
diff --git a/update/update.sh b/update/update.sh
index aea0445..4ea4d0a 100755
--- a/update/update.sh
+++ b/update/update.sh
@@ -13,13 +13,13 @@ mkdir upload
previous=`cat commit.txt`
-cd ../../gittorious/clientdata-beta
+cd ../../client-data
head=`git log --pretty=oneline -n 1 | awk '{print $1}'`
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 -9 -r ../../evol-tools/update/files/evol-${u1}..${u2}.zip
+ xargs zip -9 -r ../tools/update/files/evol-${u1}..${u2}.zip
cd $dir/files
if [ -f evol-${u1}..${u2}.zip ]; then
diff --git a/update/update_music.sh b/update/update_music.sh
index 997588b..8d11520 100755
--- a/update/update_music.sh
+++ b/update/update_music.sh
@@ -13,7 +13,7 @@ mkdir upload
previous=`cat musiccommit.txt`
-cd ../../gittorious/evol-music
+cd ../../music
head=`git log --pretty=oneline -n 1 | awk '{print $1}'`
u1=`echo ${previous} | cut -c 1-7`
u2=`echo ${head} | cut -c 1-7`