diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-15 21:40:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-15 21:40:03 +0300 |
commit | fda4350bc00ed2df52e6c2b28a2ac75d8bda8f32 (patch) | |
tree | 6ea6d5b2240aa2369d27ca2a1b01d641faff28eb /update/update.sh | |
parent | 55201f2eb9afe3d3e5e7483470e59a915f37eb4b (diff) | |
download | evol-tools-fda4350bc00ed2df52e6c2b28a2ac75d8bda8f32.tar.gz evol-tools-fda4350bc00ed2df52e6c2b28a2ac75d8bda8f32.tar.bz2 evol-tools-fda4350bc00ed2df52e6c2b28a2ac75d8bda8f32.tar.xz evol-tools-fda4350bc00ed2df52e6c2b28a2ac75d8bda8f32.zip |
update: update scripts for update files generation.
Diffstat (limited to 'update/update.sh')
-rwxr-xr-x | update/update.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/update/update.sh b/update/update.sh index 2e560b6..e881f87 100755 --- a/update/update.sh +++ b/update/update.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (C) 2010-2011 Evol Online +# Copyright (C) 2010-2012 Evol Online # Author: Andrei Karas (4144) dir=`pwd` @@ -8,15 +8,18 @@ dir=`pwd` rm adler32 gcc -lz adler32.c -o adler32 +mkdir files +mkdir upload + previous=`cat commit.txt` -cd ../../clientdata +cd ../../gittorious/clientdata-beta 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\)" | sort | uniq | \ - xargs zip -9 -r ../evol-tools/update/files/evol-${u1}..${u2}.zip + xargs zip -9 -r ../../privtools/update/files/evol-${u1}..${u2}.zip cd $dir/files if [ -f evol-${u1}..${u2}.zip ]; then |