Skip to content

Commit

Permalink
submodules work a bit different
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Jul 31, 2024
1 parent 92ae4d7 commit be7b00e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 37 deletions.
11 changes: 1 addition & 10 deletions external/ios/build_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ else
mkdir -p $BOOST_DIR_PATH || true
cp -r "${MONEROC_DIR}/external/Apple-Boost-BuildScript" $BOOST_DIR_PATH
fi

# Verify if the repository was cloned successfully.
if [ -d "$BOOST_DIR_PATH/.git" ]; then
echo "Boost repository cloned successfully."
cd $BOOST_DIR_PATH
git checkout build
else
echo "Failed to clone Boost repository. Exiting."
exit 1
fi
cd $BOOST_DIR_PATH

./boost.sh -ios \
--min-ios-version ${MIN_IOS_VERSION} \
Expand Down
10 changes: 1 addition & 9 deletions external/ios/build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@ else
mkdir -p "$OPEN_SSL_DIR_PATH" || true
cp -r "${MONEROC_DIR}/external/OpenSSL-for-iPhone" $OPEN_SSL_DIR_PATH
fi
exit 0
# Verify if the repository was cloned successfully.
if [ -d "$OPEN_SSL_DIR_PATH/.git" ]; then
echo "OpenSSL repository cloned successfully."
cd $OPEN_SSL_DIR_PATH
else
echo "Failed to clone OpenSSL repository. Exiting."
exit 1
fi
cd $OPEN_SSL_DIR_PATH

./build-libssl.sh --version=1.1.1q --targets="ios-cross-arm64" --deprecated

Expand Down
11 changes: 1 addition & 10 deletions external/ios/build_unbound.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@ else
cp -r "${MONEROC_DIR}/external/unbound" ${UNBOUND_DIR_PATH}
fi

# Verify if the repository was cloned successfully.
if [ -d "$UNBOUND_DIR_PATH/.git" ]; then
echo "Unbound repository cloned successfully."
cd $UNBOUND_DIR_PATH
git checkout $UNBOUND_VERSION # Or UNBOUND_HASH.
test `git rev-parse HEAD` = ${UNBOUND_HASH} || exit 1
else
echo "Failed to clone Unbound repository. Exiting."
exit 1
fi
cd $UNBOUND_DIR_PATH

export IOS_SDK=iPhone
export IOS_CPU=arm64
Expand Down
1 change: 1 addition & 0 deletions external/ios/build_wownero_seed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SEED_SRC_DIR="${EXTERNAL_IOS_SOURCE_DIR}/seed"
rm -rf "$SEED_SRC_DIR" > /dev/null

echo "[*] cloning $SEED_URL"
rm -rf ${SEED_SRC_DIR} || true
mkdir -p ${SEED_SRC_DIR} || true
cp -r "${MONEROC_DIR}/external/wownero-seed" ${SEED_SRC_DIR}
cd $SEED_SRC_DIR
Expand Down
9 changes: 1 addition & 8 deletions external/ios/build_zmq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ else
cp -r "${MONEROC_DIR}/external/libzmq" $ZMQ_PATH
fi

# Verify if the repository was cloned successfully.
if [ -d "$ZMQ_PATH/.git" ]; then
echo "ZeroMQ repository cloned successfully."
cd $ZMQ_PATH
else
echo "Failed to clone ZeroMQ repository. Exiting."
exit 1
fi
cd $ZMQ_PATH

mkdir -p cmake-build
cd cmake-build
Expand Down

0 comments on commit be7b00e

Please sign in to comment.