Your Name 4 years ago
parent
commit
7bbf359011
1 changed files with 8 additions and 6 deletions
  1. 8 6
      build_bfgminer.sh

+ 8 - 6
build_bfgminer.sh

@@ -10,7 +10,7 @@ sudo cp src/* /opt/mxe/usr/i686-w64-mingw32.shared/include/
 cd ~
 git clone https://github.com/wareck/bfgminer.git
 cd bfgminer
-sudo sed -i -e "s/FutureBit,scrypt,auto/FutureBit,scrypt,no/g" configure.ac
+#sudo sed -i -e "s/FutureBit,scrypt,auto/FutureBit,scrypt,no/g" configure.ac
 ./autogen.sh
 CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.shared --enable-scrypt --enable-futurebit --disable-other-drivers
 make
@@ -19,13 +19,15 @@ cp *.exe ~/out_tmp
 cd ~/out_tmp
 mingw-bundledlls --copy --upx bfgminer.exe
 mkdir /tmp/bfgminer
-cp ~/opt_tmp/* /tmp/bfgminer
+cp ~/out_tmp/* /tmp/bfgminer
 cp $folder/packages/bfgminer/* /tmp/bfgminer/
 cd /tmp
-version=`git ls-remote -h https://github.com/wareck/bfgminer.git | awk '{print $1}' |cut -c1-7`
-7z a bfgminer-wrk-$version.7z bfgminer
+version=`git ls-remote -h https://github.com/wareck/bfgminer.git | awk '{print $1}' |cut -c1-7 | head -n 1`
+7z a bfgminer-wrk-$version.win64.7z bfgminer
 lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
-put bfgminer-wrk-$version.7z -o /crypto/bfgminer-wrk-$version.7z
+put bfgminer-wrk-$version.win64.7z -o /crypto/bfgminer-wrk-$version.win64.7z
 EOF
-
+cd ~
+rm -r out_tmp
+rm -r uthash-master