summaryrefslogtreecommitdiff
path: root/update/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update/update.sh')
-rwxr-xr-xupdate/update.sh9
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