build_gekko.sh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/bash
  2. export folder=$(pwd)
  3. cd ~
  4. if ! [ -d cgminer-gekko ]
  5. then
  6. git clone https://github.com/wareck/cgminer-gekko.git
  7. else
  8. cd cgminer-gekko
  9. git pull
  10. cd ..
  11. fi
  12. cd cgminer-gekko
  13. autoreconf -fi
  14. CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-gekko
  15. #--enable-bflsc --enable-bitforce --enable-bitfury --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio --enable-icarus --enable-klondike --enable-modminer
  16. make
  17. strip cgminer.exe
  18. mkdir /tmp/cgminer-gekko
  19. cp cgminer.exe /tmp/cgminer-gekko
  20. cp $folder/packages/gekko/manual.pdf /tmp/cgminer-gekko/
  21. cp $folder/packages/gekko/start.bat /tmp/cgminer-gekko/
  22. cp $folder/packages/gekko/zadig-2.5.exe /tmp/cgminer-gekko/
  23. cd /tmp/
  24. version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
  25. 7z a cgminer-gekko-$version.7z cgminer-gekko
  26. lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
  27. put cgminer-gekko-$version.7z -o /crypto/cgminer/cgminer-gekko-$version.7z
  28. EOF
  29. cp cgminer-gekko-$version.7z /home/$USER/Bureau
  30. cd ~
  31. cd cgminer-gekko
  32. CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-gekko --enable-bflsc --enable-bitforce --enable-bitfury --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio --enable-icarus --enable-klondike --enable-modminer
  33. make
  34. strip cgminer.exe
  35. rm -r /tmp/cgminer-gekko
  36. mkdir /tmp/cgminer-gekko
  37. cp cgminer.exe /tmp/cgminer-gekko
  38. cp $folder/packages/gekko/manual.pdf /tmp/cgminer-gekko/
  39. cp $folder/packages/gekko/start.bat /tmp/cgminer-gekko/
  40. cp $folder/packages/gekko/zadig-2.5.exe /tmp/cgminer-gekko/
  41. cd /tmp/
  42. version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
  43. 7z a cgminer-all-usb-drivers-$version.7z cgminer-gekko
  44. lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
  45. put cgminer-all-usb-drivers-$version.7z -o /crypto/cgminer/gminer-all-usb-drivers-$version.7z
  46. EOF