From a0a9df160d72c0401653df2b7476ab7b57ee4b9a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Sep 2014 12:03:46 +0300 Subject: upate: add missing addmods.sh --- update/addmods.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 update/addmods.sh diff --git a/update/addmods.sh b/update/addmods.sh new file mode 100755 index 0000000..0711ba5 --- /dev/null +++ b/update/addmods.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright (C) 2010-2012 Evol Online +# Author: Andrei Karas (4144) + +dir=`pwd` + +rm adler32 +gcc -lz adler32.c -o adler32 + +mkdir files +mkdir upload + +previous=`cat commit.txt` + +cd ../../gittorious/clientdata-beta/mods + +FILES=`ls` + +for file in $FILES; do + cd $file + find . -type f | xargs zip -9 -r ../../../../privtools/update/files/mod-$file.zip + cd $dir/files + sum=`../adler32 1 mod-$file.zip` + echo " " >> xml_header.txt + cp xml_header.txt resources.xml + cat xml_footer.txt >>resources.xml + cp mod-$file.zip ../upload/ + cp resources2.txt ../upload/ + cp resources.xml ../upload/ +done -- cgit v1.2.3-70-g09d2