Skip to content

Commit

Permalink
ENH: allow automatic submodule downloads on clean build
Browse files Browse the repository at this point in the history
  • Loading branch information
“Adrian-Diaz” committed Aug 6, 2024
1 parent 6ba229f commit 25be3de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/cmake_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kokkos_build_type="${3}"
if { [ ! -d "${ELEMENTS_SOURCE_DIR}/elements" ] || [ ! -d "${ELEMENTS_SOURCE_DIR}/matar/src" ] ;}
then
echo "Missing submodules, downloading them...."
git submodule update --recursive "${ELEMENTS_SOURCE_DIR}"
git submodule update --init --recursive "${ELEMENTS_SOURCE_DIR}"
fi

if [ ! -d "${TRILINOS_INSTALL_DIR}/lib" ]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export installdir=${basedir}/install

export devutilsdir=${topdir}/dev-utils

export UNCRUSTIFY_SOURCE_DIR=${devutilsdir}/uncrustify/src
export UNCRUSTIFY_SOURCE_DIR=${devutilsdir}/uncrustify
export UNCRUSTIFY_BUILD_DIR=${devutilsdir}/uncrustify/build
export UNCRUSTIFY_INSTALL_DIR=${devutilsdir}/uncrustify/build

Expand Down
4 changes: 2 additions & 2 deletions scripts/uncrustify-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

# Check if the uncrustify build directory exists and is not empty in the parent directory; if not, clone it

if [ ! -d "${UNCRUSTIFY_SOURCE_DIR}" ];
if [ ! -d "${UNCRUSTIFY_SOURCE_DIR}/src" ];
then
echo "Missing Uncrustify submodule, downloading...."
git submodule update ${UNCRUSTIFY_SOURCE_DIR}
git submodule update --init ${UNCRUSTIFY_SOURCE_DIR}
fi

if [ ! -f "${UNCRUSTIFY_BUILD_DIR}/uncrustify" ]; then
Expand Down

0 comments on commit 25be3de

Please sign in to comment.