handle folders correctly if there's an error compiling dependencies
@@ -69,12 +69,14 @@ mkdir -p $dependencies_dir && cd $dependencies_dir
echo "installing libodb"
wget http://codesynthesis.com/download/odb/2.4/libodb-2.4.0.tar.bz2 -O /tmp/libodb.tar.bz2
tar jxvf /tmp/libodb.tar.bz2
-cd libodb-2.4.0 && ./configure && make && cd ..
+cd libodb-2.4.0 && ./configure && make
+cd ..
echo "installing libodb-sqlite"
wget http://codesynthesis.com/download/odb/2.4/libodb-sqlite-2.4.0.tar.bz2 -O /tmp/libodb-sqlite.tar.bz2
tar jxvf /tmp/libodb-sqlite.tar.bz2
-cd libodb-sqlite-2.4.0 && ./configure --with-libodb=../libodb-2.4.0 && make && cd ..
+cd libodb-sqlite-2.4.0 && ./configure --with-libodb=../libodb-2.4.0 && make
+cd ..
echo "installing libbz2"
# This is commented till the bzip.org site is recovered.
@@ -83,12 +85,14 @@ echo "installing libbz2"
# Till then we can trust ubuntu archives.
wget http://archive.ubuntu.com/ubuntu/pool/main/b/bzip2/bzip2_1.0.6.orig.tar.bz2 -O /tmp/libbz2.tar.bz2
tar jxvf /tmp/libbz2.tar.bz2
-cd bzip2-1.0.6 && make && cd ..
+cd bzip2-1.0.6 && make
+cd ..
echo "installing libz"
wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.11.tar.gz?download -O /tmp/libz.tar.gz
tar zxvf /tmp/libz.tar.gz
-cd zlib-1.2.11 && cmake . && make && cd ..
+cd zlib-1.2.11 && cmake . && make
+cd ..
dependencies_dir_abs_path=`pwd`
@@ -101,7 +105,8 @@ LIBS="-lcrypto -ldl" \
./config -fPIC no-shared no-threads \
--prefix=$dependencies_dir_abs_path/openssl \
--openssldir=$dependencies_dir_abs_path/openssl
-make && make install_sw && cd ..
+make && make install_sw
+cd ..
echo "installing c-ares"
mkdir c-ares
@@ -109,7 +114,8 @@ wget https://c-ares.haxx.se/download/c-ares-1.15.0.tar.gz -O /tmp/c-ares-1.15.0.
tar xzf /tmp/c-ares-1.15.0.tar.gz
cd c-ares-1.15.0
./configure --prefix=$dependencies_dir_abs_path/c-ares
-make && make install && cd ..
+make && make install
+cd ..
echo "installing libcurl"
mkdir curl
@@ -129,7 +135,8 @@ CPPFLAGS="-I$dependencies_dir_abs_path/openssl/include -I$dependencies_dir_abs_p
--enable-ares=$dependencies_dir_abs_path/c-ares \
--with-ssl=$dependencies_dir_abs_path/openssl \
--prefix=$dependencies_dir_abs_path/curl
-make && make install && cd ..
+make && make install
+cd ..
# Make easier to find the static libraries
cp libodb-2.4.0/odb/.libs/libodb.a .
