diff options
Diffstat (limited to 'update/update.sh')
-rwxr-xr-x | update/update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update/update.sh b/update/update.sh index 020b96d..adddb32 100755 --- a/update/update.sh +++ b/update/update.sh @@ -11,7 +11,7 @@ gcc -lz adler32.c -o adler32 mkdir files mkdir upload -previous=`cat commit.txt` +previous=`cat commit_old.txt` cd ../../client-data head=`git log --pretty=oneline -n 1 | awk '{print $1}'` @@ -24,7 +24,7 @@ git diff --name-status ${previous} HEAD | awk '/^(A|M)\t/ {print $2}; /^(R...)\t cd $dir/files if [ -f TMW2-${u1}.zip ]; then #mv ../commit.txt ../commit_old.txt - #echo ${head} >../commit.txt + echo ${head} >../commit.txt sum=`adler32 TMW2-${u1}.zip | awk '{print $2}'` echo "TMW2-${u1}.zip ${sum}" >>resources2.txt echo " <update type=\"data\" file=\"TMW2-${u1}.zip\" hash=\"${sum}\" />" >> xml_header.txt |