Skip to content

Commit

Permalink
fix missing submodules
Browse files Browse the repository at this point in the history
Resolves pmodels#30

Signed-off-by: Hammond, Jeff R <[email protected]>
  • Loading branch information
Hammond, Jeff R committed Dec 2, 2019
1 parent 2f90528 commit 56bfbe8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ fi
## Others
##########################################

# It is very easy to not clone recursively.
# This will fix this issue if it exists and is otherwise innocuous.
# Conditionalizing it on the presence of .git means it will not
# run when the user did not clone the code.
if [ -d ".git" ] ; then
if [ ! -f "src/hwloc/autogen.sh" ] || [ ! -f "src/openpa/autogen.sh" ] ; then
echo "=== Attempting to initialize missing submodules ==="
(git submodule init && git submodule update) || exit 1
fi
fi

subdirs=test

# copy confdb
Expand Down

0 comments on commit 56bfbe8

Please sign in to comment.