diff --git a/android/build_all.sh b/android/build_all.sh index 9f7be58d9d..1279c7e185 100755 --- a/android/build_all.sh +++ b/android/build_all.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# diff --git a/android/build_androidtc_arm.sh b/android/build_androidtc_arm.sh index c02ec1b7b6..be4a761f54 100755 --- a/android/build_androidtc_arm.sh +++ b/android/build_androidtc_arm.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -10,6 +11,6 @@ export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}" export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROID_TC_ARM="${ANDROID_TC_ARM:-$ANDROID_TC/arm}" -if [ ! -d $ANDROID_TC_ARM/arm-linux-androideabi ]; then - $NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-9 --arch=arm --install-dir=$ANDROID_TC_ARM +if [ ! -d "$ANDROID_TC_ARM/arm-linux-androideabi" ]; then + "$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --platform=android-9 --arch=arm --install-dir="$ANDROID_TC_ARM" "$@" fi diff --git a/android/build_androidtc_arm64.sh b/android/build_androidtc_arm64.sh index 082b200e80..b882a77f2a 100755 --- a/android/build_androidtc_arm64.sh +++ b/android/build_androidtc_arm64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -10,6 +11,6 @@ export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}" export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROID_TC_ARM64="${ANDROID_TC_ARM64:-$ANDROID_TC/arm64}" -if [ ! -d $ANDROID_TC_ARM64/aarch64-linux-android ]; then - $NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-21 --arch=arm64 --install-dir=$ANDROID_TC_ARM64 +if [ ! -d "$ANDROID_TC_ARM64/aarch64-linux-android" ]; then + "$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --platform=android-21 --arch=arm64 --install-dir="$ANDROID_TC_ARM64" "$@" fi diff --git a/android/build_androidtc_mips.sh b/android/build_androidtc_mips.sh index 3d3e262158..3d2a781bdb 100755 --- a/android/build_androidtc_mips.sh +++ b/android/build_androidtc_mips.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -10,6 +11,6 @@ export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}" export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROID_TC_MIPS="${ANDROID_TC_MIPS:-$ANDROID_TC/mips}" -if [ ! -d $ANDROID_TC_MIPS/mipsel-linux-android ]; then - $NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-9 --arch=mips --install-dir=$ANDROID_TC_MIPS +if [ ! -d "$ANDROID_TC_MIPS/mipsel-linux-android" ]; then + "$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --platform=android-9 --arch=mips --install-dir="$ANDROID_TC_MIPS" "$@" fi diff --git a/android/build_androidtc_mips64.sh b/android/build_androidtc_mips64.sh index cae8e4c1d1..3011144341 100755 --- a/android/build_androidtc_mips64.sh +++ b/android/build_androidtc_mips64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -10,6 +11,6 @@ export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}" export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROID_TC_MIPS64="${ANDROID_TC_MIPS64:-$ANDROID_TC/mips64}" -if [ ! -d $ANDROID_TC_MIPS64/mips64el-linux-android ]; then - $NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-21 --arch=mips64 --install-dir=$ANDROID_TC_MIPS64 +if [ ! -d "$ANDROID_TC_MIPS64/mips64el-linux-android" ]; then + "$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --platform=android-21 --arch=mips64 --install-dir="$ANDROID_TC_MIPS64" "$@" fi diff --git a/android/build_androidtc_x86.sh b/android/build_androidtc_x86.sh index 9bf8c54239..e2b0bf0b52 100755 --- a/android/build_androidtc_x86.sh +++ b/android/build_androidtc_x86.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -10,6 +11,6 @@ export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}" export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROID_TC_X86="${ANDROID_TC_X86:-$ANDROID_TC/x86}" -if [ ! -d $ANDROID_TC_X86/i686-linux-android ]; then - $NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-9 --arch=x86 --install-dir=$ANDROID_TC_X86 +if [ ! -d "${ANDROID_TC_X86}/i686-linux-android" ]; then + "${NDK_ROOT}/build/tools/make-standalone-toolchain.sh" --platform=android-9 --arch=x86 --install-dir="${ANDROID_TC_X86}" "$@" fi diff --git a/android/build_androidtc_x86_64.sh b/android/build_androidtc_x86_64.sh index 289080de71..7a7a11d812 100755 --- a/android/build_androidtc_x86_64.sh +++ b/android/build_androidtc_x86_64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -10,6 +11,6 @@ export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}" export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROID_TC_X86_64="${ANDROID_TC_X86_64:-$ANDROID_TC/x86_64}" -if [ ! -d $ANDROID_TC_X86_64/x86_64-linux-android ]; then - $NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-21 --arch=x86_64 --install-dir=$ANDROID_TC_X86_64 +if [ ! -d "${ANDROID_TC_X86_64}/x86_64-linux-android" ]; then + "${NDK_ROOT}/build/tools/make-standalone-toolchain.sh" --platform=android-21 --arch=x86_64 --install-dir="${ANDROID_TC_X86_64}" "$@" fi diff --git a/android/build_boinc_all.sh b/android/build_boinc_all.sh index a4c3ef6227..67211abc7e 100755 --- a/android/build_boinc_all.sh +++ b/android/build_boinc_all.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# diff --git a/android/build_boinc_arm.sh b/android/build_boinc_arm.sh index bdc7ce10f0..7817a35b77 100755 --- a/android/build_boinc_arm.sh +++ b/android/build_boinc_arm.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -27,20 +28,20 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv7-a" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -march=armv7-a -Wl,--fix-cortex-a8" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_arm.sh if [ -n "$COMPILEBOINC" ]; then echo "==================building BOINC from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-shared --enable-static +./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi diff --git a/android/build_boinc_arm64.sh b/android/build_boinc_arm64.sh index c3798c5325..ee6100e3df 100755 --- a/android/build_boinc_arm64.sh +++ b/android/build_boinc_arm64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -27,20 +28,20 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -DDECLARE_TIMEZONE -W export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_arm64.sh if [ -n "$COMPILEBOINC" ]; then echo "==================building BOINC from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=aarch64-linux --with-boinc-platform="aarch64-android-linux-gnu" --with-boinc-alt-platform="arm-android-linux-gnu" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-shared --enable-static +./configure --host=aarch64-linux --with-boinc-platform="aarch64-android-linux-gnu" --with-boinc-alt-platform="arm-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi diff --git a/android/build_boinc_mips.sh b/android/build_boinc_mips.sh index a42b70d31d..beb012ba5c 100755 --- a/android/build_boinc_mips.sh +++ b/android/build_boinc_mips.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -27,20 +28,20 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_mips.sh if [ -n "$COMPILEBOINC" ]; then echo "==================building BOINC from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=mipsel-linux --with-boinc-platform="mipsel-android-linux-gnu" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-shared --enable-static +./configure --host=mipsel-linux --with-boinc-platform="mipsel-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi diff --git a/android/build_boinc_mips64.sh b/android/build_boinc_mips64.sh index c561072d3e..3e881e56b6 100755 --- a/android/build_boinc_mips64.sh +++ b/android/build_boinc_mips64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -27,20 +28,20 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -DDECLARE_TIMEZONE -W export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib64 -L$TCINCLUDES/lib64 -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_mips64.sh if [ -n "$COMPILEBOINC" ]; then echo "==================building BOINC from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=mips64el-linux --with-boinc-platform="mips64el-android-linux-gnu" --with-boinc-alt-platform="mipsel-android-linux-gnu" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-shared --enable-static +./configure --host=mips64el-linux --with-boinc-platform="mips64el-android-linux-gnu" --with-boinc-alt-platform="mipsel-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi diff --git a/android/build_boinc_x86.sh b/android/build_boinc_x86.sh index 572427655a..623f14d553 100755 --- a/android/build_boinc_x86.sh +++ b/android/build_boinc_x86.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -27,20 +28,20 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_x86.sh if [ -n "$COMPILEBOINC" ]; then echo "==================building BOINC from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-shared --enable-static +./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi diff --git a/android/build_boinc_x86_64.sh b/android/build_boinc_x86_64.sh index 0f2f4906d6..7efc41c59f 100755 --- a/android/build_boinc_x86_64.sh +++ b/android/build_boinc_x86_64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -27,20 +28,20 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -DDECLARE_TIMEZONE -W export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib64 -L$TCINCLUDES/lib64 -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_x86_64.sh if [ -n "$COMPILEBOINC" ]; then echo "==================building BOINC from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=x86_64-linux --with-boinc-platform="x86_64-android-linux-gnu" --with-boinc-alt-platform="x86-android-linux-gnu" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-shared --enable-static +./configure --host=x86_64-linux --with-boinc-platform="x86_64-android-linux-gnu" --with-boinc-alt-platform="x86-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi diff --git a/android/build_build_app_arm.sh b/android/build_build_app_arm.sh index 48f0968d2c..8f4cf23816 100755 --- a/android/build_build_app_arm.sh +++ b/android/build_build_app_arm.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp @@ -25,7 +26,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" make clean if [ -e "./configure" ]; then -./configure --host=arm-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static +./configure --host=arm-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static fi make diff --git a/android/build_build_app_mips.sh b/android/build_build_app_mips.sh index 9e2351b605..ee177320ef 100755 --- a/android/build_build_app_mips.sh +++ b/android/build_build_app_mips.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp @@ -25,7 +26,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" make clean if [ -e "./configure" ]; then -./configure --host=mipsel-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static +./configure --host=mipsel-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static fi make diff --git a/android/build_build_app_x86.sh b/android/build_build_app_x86.sh index fe0333dee2..6207d307bf 100755 --- a/android/build_build_app_x86.sh +++ b/android/build_build_app_x86.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp @@ -24,8 +25,8 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" make clean -if [ -e "./confgiure" ]; then -./configure --host=i686-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static +if [ -e "./configure" ]; then +./configure --host=i686-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static fi make diff --git a/android/build_curl_arm.sh b/android/build_curl_arm.sh index 4e93f65017..178582cfb4 100755 --- a/android/build_curl_arm.sh +++ b/android/build_curl_arm.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,12 +34,12 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILECURL" ]; then echo "==================building curl from $CURL=================================" -cd $CURL +cd "$CURL" if [ -n "$MAKECLEAN" ]; then make clean fi if [ -n "$CONFIGURE" ]; then -./configure --host=arm-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom --without-zlib +./configure --host=arm-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom --without-zlib fi make make install diff --git a/android/build_curl_arm64.sh b/android/build_curl_arm64.sh index defdeb453e..111af5b624 100755 --- a/android/build_curl_arm64.sh +++ b/android/build_curl_arm64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,12 +34,12 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILECURL" ]; then echo "==================building curl from $CURL=================================" -cd $CURL +cd "$CURL" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then -./configure --host=aarch64-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom +./configure --host=aarch64-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom fi make make install diff --git a/android/build_curl_mips.sh b/android/build_curl_mips.sh index 78c07c69cc..1299583e79 100755 --- a/android/build_curl_mips.sh +++ b/android/build_curl_mips.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,12 +34,12 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILECURL" ]; then echo "==================building curl from $CURL=================================" -cd $CURL +cd "$CURL" if [ -n "$MAKECLEAN" ]; then make clean fi if [ -n "$CONFIGURE" ]; then -./configure --host=mipsel-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom +./configure --host=mipsel-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom fi make make install diff --git a/android/build_curl_mips64.sh b/android/build_curl_mips64.sh index ea47d2ee6d..13e680bcc0 100755 --- a/android/build_curl_mips64.sh +++ b/android/build_curl_mips64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -32,12 +33,12 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILECURL" ]; then echo "==================building curl from $CURL=================================" -cd $CURL +cd "$CURL" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then -./configure --host=mips64el-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom +./configure --host=mips64el-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom fi make make install diff --git a/android/build_curl_x86.sh b/android/build_curl_x86.sh index 5abbcbe98a..fde13f37a5 100755 --- a/android/build_curl_x86.sh +++ b/android/build_curl_x86.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,12 +34,12 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILECURL" ]; then echo "==================building curl from $CURL=================================" -cd $CURL +cd "$CURL" if [ -n "$MAKECLEAN" ]; then make clean fi if [ -n "$CONFIGURE" ]; then -./configure --host=i686-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom +./configure --host=i686-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom fi make make install diff --git a/android/build_curl_x86_64.sh b/android/build_curl_x86_64.sh index 9db614443a..ef4f27692b 100755 --- a/android/build_curl_x86_64.sh +++ b/android/build_curl_x86_64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,12 +34,12 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILECURL" ]; then echo "==================building curl from $CURL=================================" -cd $CURL +cd "$CURL" if [ -n "$MAKECLEAN" ]; then make distclean fi if [ -n "$CONFIGURE" ]; then -./configure --host=x86_64-linux --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom +./configure --host=x86_64-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom fi make make install diff --git a/android/build_libraries_arm.sh b/android/build_libraries_arm.sh index df2fc9b92b..5b44b232f6 100755 --- a/android/build_libraries_arm.sh +++ b/android/build_libraries_arm.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp# @@ -28,7 +29,7 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_arm.sh @@ -36,13 +37,13 @@ export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT if [ -n "$COMPILEBOINC" ]; then echo "==================building Libraries from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make clean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip +./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip fi make make stage diff --git a/android/build_libraries_mips.sh b/android/build_libraries_mips.sh index 9922082ac8..a04a1df828 100755 --- a/android/build_libraries_mips.sh +++ b/android/build_libraries_mips.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp# @@ -28,7 +29,7 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_mips.sh @@ -36,13 +37,13 @@ export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT if [ -n "$COMPILEBOINC" ]; then echo "==================building Libraries from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make clean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=mipsel-linux --with-boinc-platform="mipsel-android-linux-gnu" --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip +./configure --host=mipsel-linux --with-boinc-platform="mipsel-android-linux-gnu" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip fi make make stage diff --git a/android/build_libraries_x86.sh b/android/build_libraries_x86.sh index 95265dd94d..40c0036a12 100755 --- a/android/build_libraries_x86.sh +++ b/android/build_libraries_x86.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp# @@ -14,7 +15,7 @@ MAKECLEAN="yes" export BOINC=".." #BOINC source code export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" -export ANDROIDTC="${ANDROID_TC_X86:-$ANDROID_TC/x86" +export ANDROIDTC="${ANDROID_TC_X86:-$ANDROID_TC/x86}" export TCBINARIES="$ANDROIDTC/bin" export TCINCLUDES="$ANDROIDTC/i686-linux-android" export TCSYSROOT="$ANDROIDTC/sysroot" @@ -28,7 +29,7 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" # Prepare android toolchain and environment ./build_androidtc_x86.sh @@ -36,13 +37,13 @@ export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT if [ -n "$COMPILEBOINC" ]; then echo "==================building Libraries from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make clean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip +./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip fi make make stage diff --git a/android/build_openssl_arm.sh b/android/build_openssl_arm.sh index 7c707823cf..18444ed904 100755 --- a/android/build_openssl_arm.sh +++ b/android/build_openssl_arm.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,7 +34,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILEOPENSSL" ]; then echo "================building openssl from $OPENSSL=============================" -cd $OPENSSL +cd "$OPENSSL" if [ -n "$MAKECLEAN" ]; then make clean fi diff --git a/android/build_openssl_arm64.sh b/android/build_openssl_arm64.sh index 04ba771d67..3401e17e56 100755 --- a/android/build_openssl_arm64.sh +++ b/android/build_openssl_arm64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,7 +34,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILEOPENSSL" ]; then echo "================building openssl from $OPENSSL=============================" -cd $OPENSSL +cd "$OPENSSL" if [ -n "$MAKECLEAN" ]; then make clean fi diff --git a/android/build_openssl_mips.sh b/android/build_openssl_mips.sh index d85db4768d..fdec3a7339 100755 --- a/android/build_openssl_mips.sh +++ b/android/build_openssl_mips.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,7 +34,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILEOPENSSL" ]; then echo "================building openssl from $OPENSSL=============================" -cd $OPENSSL +cd "$OPENSSL" if [ -n "$MAKECLEAN" ]; then make clean fi diff --git a/android/build_openssl_mips64.sh b/android/build_openssl_mips64.sh index bf26094c24..a6b6bef2c4 100755 --- a/android/build_openssl_mips64.sh +++ b/android/build_openssl_mips64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -32,7 +33,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILEOPENSSL" ]; then echo "================building openssl from $OPENSSL=============================" -cd $OPENSSL +cd "$OPENSSL" if [ -n "$MAKECLEAN" ]; then make clean fi diff --git a/android/build_openssl_x86.sh b/android/build_openssl_x86.sh index b97ff310b3..230415a651 100755 --- a/android/build_openssl_x86.sh +++ b/android/build_openssl_x86.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,7 +34,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILEOPENSSL" ]; then echo "================building openssl from $OPENSSL=============================" -cd $OPENSSL +cd "$OPENSSL" if [ -n "$MAKECLEAN" ]; then make clean fi diff --git a/android/build_openssl_x86_64.sh b/android/build_openssl_x86_64.sh index 65c942e751..d1f47ea926 100755 --- a/android/build_openssl_x86_64.sh +++ b/android/build_openssl_x86_64.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient# @@ -33,7 +34,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" if [ -n "$COMPILEOPENSSL" ]; then echo "================building openssl from $OPENSSL=============================" -cd $OPENSSL +cd "$OPENSSL" if [ -n "$MAKECLEAN" ]; then make clean fi diff --git a/android/build_wrapper_arm.sh b/android/build_wrapper_arm.sh index 42b386e0c6..94db21582a 100755 --- a/android/build_wrapper_arm.sh +++ b/android/build_wrapper_arm.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp# @@ -37,7 +38,7 @@ export PTHREAD=-L. if [ -n "$COMPILEBOINC" ]; then echo "==================building Wrapper from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make clean @@ -48,7 +49,7 @@ fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip +./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip fi make diff --git a/android/build_wrapper_mips.sh b/android/build_wrapper_mips.sh index 199b08f18a..67e2b32b17 100755 --- a/android/build_wrapper_mips.sh +++ b/android/build_wrapper_mips.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp# @@ -28,7 +29,7 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" export PTHREAD=-L. # Prepare android toolchain and environment @@ -37,7 +38,7 @@ export PTHREAD=-L. if [ -n "$COMPILEBOINC" ]; then echo "==================building Wrapper from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make clean @@ -48,7 +49,7 @@ fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=mipsel-linux --with-boinc-platform="mipsel-android-linux-gnu" --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip +./configure --host=mipsel-linux --with-boinc-platform="mipsel-android-linux-gnu" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip fi make diff --git a/android/build_wrapper_x86.sh b/android/build_wrapper_x86.sh index 4f443b82fd..31cfa45417 100755 --- a/android/build_wrapper_x86.sh +++ b/android/build_wrapper_x86.sh @@ -1,4 +1,5 @@ -#/bin/sh +#!/bin/sh +set -e # # See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildApp# @@ -28,7 +29,7 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" -export PKG_CONFIG_SYSROOT_DIR=$TCSYSROOT +export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT" export PTHREAD=-L. # Prepare android toolchain and environment @@ -37,7 +38,7 @@ export PTHREAD=-L. if [ -n "$COMPILEBOINC" ]; then echo "==================building Wrapper from $BOINC==========================" -cd $BOINC +cd "$BOINC" if [ -n "$MAKECLEAN" ]; then make clean @@ -48,7 +49,7 @@ fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --prefix=$TCINCLUDES --libdir="$TCINCLUDES/lib" --with-ssl=$TCINCLUDES --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip +./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip fi make