#!/bin/bash export folder=$(pwd) cd ~ git clone https://github.com/wareck/cgminer-lketc.git cd cgminer-lketc autoreconf -fi CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-zeus --enable-scrypt make -j4 strip cgminer.exe upx cgminer.exe mkdir /tmp/cgminer-lketc cp cgminer.exe /tmp/cgminer-lketc cp $folder/packages/lketc/manual.pdf /tmp/cgminer-lketc/ cp $folder/packages/lketc/start.bat /tmp/cgminer-lketc/ cp $folder/packages/lketc/zadig-2.7.exe /tmp/cgminer-lketc/ cp $folder/packages/lketc/cgminer.conf /tmp/cgminer-lketc/ cd /tmp/ version=`git ls-remote -h https://github.com/wareck/cgminer-lketc.git | awk '{print $1}' |cut -c1-7` 7z a -tzip cgminer-lketc-$version.zip cgminer-lketc lftp -u wareck,zorn692611 ftpperso.free.fr <