We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5d0a6b commit d4b3762Copy full SHA for d4b3762
autogen.sh
@@ -6,4 +6,17 @@
6
# SPDX-License-Identifier: Apache-2.0
7
#
8
9
+modules_initialized=0
10
+SUBMODULES=$(cat .gitmodules | grep 'path.*=' | cut -d'=' -f2)
11
+for submod in $SUBMODULES; do
12
+ if [ -e $submod/.git ]; then
13
+ modules_initialized=1
14
+ fi
15
+done
16
+
17
+# don't update if there are any submodule directories
18
+if [ -f .gitmodules ] && [ -d .git ] && [ $modules_initialized = 0 ]; then
19
+ git submodule update --init --recursive
20
+fi
21
22
autoreconf --force --verbose --install || exit 1
0 commit comments