From 909a5844d72df9f585076cfcaa840a0834c757a9 Mon Sep 17 00:00:00 2001 From: "Hammond, Jeff R" Date: Sun, 1 Dec 2019 22:10:53 -0800 Subject: [PATCH] fix missing submodules Resolves https://github.com/pmodels/casper/issues/30 Signed-off-by: Hammond, Jeff R --- autogen.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autogen.sh b/autogen.sh index cb6d26c..eb0fa55 100755 --- a/autogen.sh +++ b/autogen.sh @@ -118,6 +118,14 @@ 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 + git submodules init && git submodules update +fi + subdirs=test # copy confdb