build_lketc.sh 1.1 KB

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