build_lketc.sh 956 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. export folder=$(pwd)
  3. cd ~
  4. git clone https://github.com/wareck/cgminer-lketc.git
  5. cd cgminer-lketc
  6. autoreconf -fi
  7. CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-zeus --enable-gridseed --enable-lketc --enable-scrypt --with-system-libusb
  8. make -j4
  9. strip cgminer.exe
  10. #upx cgminer.exe
  11. mkdir /tmp/cgminer-lketc
  12. cp cgminer.exe /tmp/cgminer-lketc
  13. cp $folder/packages/lketc/manual.pdf /tmp/cgminer-lketc/
  14. cp $folder/packages/lketc/start.bat /tmp/cgminer-lketc/
  15. cp $folder/packages/lketc/zadig-2.7.exe /tmp/cgminer-lketc/
  16. cp $folder/packages/lketc/cgminer.conf /tmp/cgminer-lketc/
  17. cd /tmp/
  18. version=`git ls-remote -h https://github.com/wareck/cgminer-lketc.git | awk '{print $1}' |cut -c1-7`
  19. 7z a -tzip cgminer-lketc-$version.zip cgminer-lketc
  20. lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
  21. put cgminer-lketc-$version.zip -o /crypto/cgminer-lketc-$version.zip
  22. EOF
  23. cp cgminer-lketc-$version.zip /home/$USER/Bureau