build_gekko.sh 928 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. export folder=$(pwd)
  3. cd ~
  4. git clone https://github.com/wareck/cgminer-gekko.git
  5. cd cgminer-gekko
  6. autoreconf -fi
  7. 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
  8. make
  9. strip cgminer.exe
  10. mkdir /tmp/cgminer-gekko
  11. cp cgminer.exe /tmp/cgminer-gekko
  12. cp $folder/packages/gekko/manual.pdf /tmp/cgminer-gekko/
  13. cp $folder/packages/gekko/start.bat /tmp/cgminer-gekko/
  14. cp $folder/packages/gekko/zadig-2.5.exe /tmp/cgminer-gekko/
  15. cd /tmp/
  16. version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
  17. 7z a cgminer-gekko-$version.7z cgminer-gekko
  18. lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
  19. put cgminer-gekko-$version.7z -o /crypto/cgminer-gekko-$version.7z
  20. EOF