|
@@ -10,17 +10,10 @@ git pull
|
|
cd ..
|
|
cd ..
|
|
fi
|
|
fi
|
|
cd cgminer-gekko
|
|
cd cgminer-gekko
|
|
-
|
|
|
|
autoreconf -fi
|
|
autoreconf -fi
|
|
-CFLAGS="-O2 -msse2 -static -fcommon" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-static --enable-gekko
|
|
|
|
|
|
+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
|
|
#--enable-bflsc --enable-bitforce --enable-bitfury --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio --enable-icarus --enable-klondike --enable-modminer
|
|
-make -j4
|
|
|
|
-if ! [[ -f cgminer.exe ]]
|
|
|
|
-then
|
|
|
|
-echo -e "\nerreur de compilation !!!!\n"
|
|
|
|
-exit 0
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
|
|
+make
|
|
strip cgminer.exe
|
|
strip cgminer.exe
|
|
upx cgminer.exe
|
|
upx cgminer.exe
|
|
mkdir /tmp/cgminer-gekko
|
|
mkdir /tmp/cgminer-gekko
|
|
@@ -31,36 +24,31 @@ cp $folder/packages/gekko/zadig-2.7.exe /tmp/cgminer-gekko/
|
|
cp $folder/packages/gekko/cgminer.conf /tmp/cgminer-gekko/
|
|
cp $folder/packages/gekko/cgminer.conf /tmp/cgminer-gekko/
|
|
cd /tmp/
|
|
cd /tmp/
|
|
version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
|
|
version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
|
|
-7z a cgminer-gekko-$version.7z cgminer-gekko
|
|
|
|
|
|
+7z a -tzip cgminer-gekko-$version.zip cgminer-gekko
|
|
lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
|
|
lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
|
|
-put cgminer-gekko-$version.7z -o /crypto/cgminer/cgminer-gekko-$version.7z
|
|
|
|
|
|
+put cgminer-gekko-$version.zip -o /crypto/cgminer-gekko-$version.zip
|
|
EOF
|
|
EOF
|
|
-cp cgminer-gekko-$version.7z /home/$USER/Bureau
|
|
|
|
-
|
|
|
|
-cd ~
|
|
|
|
-cd cgminer-gekko
|
|
|
|
-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
|
|
|
|
-make -j4
|
|
|
|
-if ! [[ -f cgminer.exe ]]
|
|
|
|
-then
|
|
|
|
-echo -e "\nerreur de compilation !!!! (all usb)\n"
|
|
|
|
-exit 0
|
|
|
|
-fi
|
|
|
|
|
|
+cp cgminer-gekko-$version.zip /home/$USER/Bureau
|
|
|
|
|
|
|
|
+cd /home/wareck/cgminer-gekko
|
|
|
|
+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
|
|
|
|
+make
|
|
strip cgminer.exe
|
|
strip cgminer.exe
|
|
upx cgminer.exe
|
|
upx cgminer.exe
|
|
-rm -r /tmp/cgminer-gekko
|
|
|
|
-mkdir /tmp/cgminer-gekko
|
|
|
|
-cp cgminer.exe /tmp/cgminer-gekko
|
|
|
|
-cp $folder/packages/gekko/manual.pdf /tmp/cgminer-gekko/
|
|
|
|
-cp $folder/packages/gekko/start.bat /tmp/cgminer-gekko/
|
|
|
|
-cp $folder/packages/gekko/zadig-2.7.exe /tmp/cgminer-gekko/
|
|
|
|
-cp $folder/packages/gekko/cgminer.conf /tmp/cgminer-gekko/
|
|
|
|
|
|
+rm -r -f /tmp/cgminer-gekko
|
|
|
|
+mkdir /tmp/cgminer-gekko-all-usb
|
|
|
|
+cp cgminer.exe /tmp/cgminer-gekko-all-usb
|
|
|
|
+cp $folder/packages/gekko/manual.pdf /tmp/cgminer-gekko-all-usb/
|
|
|
|
+cp $folder/packages/gekko/start.bat /tmp/cgminer-gekko-all-usb/
|
|
|
|
+cp $folder/packages/gekko/zadig-2.7.exe /tmp/cgminer-gekko-all-usb/
|
|
|
|
+cp $folder/packages/gekko/cgminer.conf /tmp/cgminer-gekko-all-usb/
|
|
cd /tmp/
|
|
cd /tmp/
|
|
|
|
+
|
|
version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
|
|
version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
|
|
-7z a cgminer-all-usb-drivers-$version.7z cgminer-gekko
|
|
|
|
|
|
+7z a -tzip cgminer-gekko-all-usb-$version.zip cgminer-gekko-all-usb
|
|
lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
|
|
lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
|
|
-put cgminer-all-usb-drivers-$version.7z -o /crypto/cgminer/cgminer-all-usb-drivers-$version.7z
|
|
|
|
|
|
+put cgminer-gekko-all-usb-$version.zip -o /crypto/cgminer-gekko-all-usb-$version.zip
|
|
EOF
|
|
EOF
|
|
-
|
|
|
|
-cp cgminer-all-usb-drivers-$version.7z /home/$USER/Bureau
|
|
|
|
|
|
+cp cgminer-gekko-all-usb-$version.zip /home/$USER/Bureau
|
|
|
|
+cd /tmp
|
|
|
|
+rm -r -f /tmp/cgminer-gekko-all-usb
|