configure: Disable git submodule management when there is no .git dir
Tarballs for distribution will not have a git repo.
This commit is contained in:
parent
5bee80612b
commit
90c07f38c1
1 changed files with 14 additions and 0 deletions
14
configure
vendored
14
configure
vendored
|
@ -428,6 +428,14 @@ done
|
||||||
# Configure submodules
|
# Configure submodules
|
||||||
step_msg "configuring submodules"
|
step_msg "configuring submodules"
|
||||||
|
|
||||||
|
# If we have no git directory then we are probably a tarball distribution
|
||||||
|
# and shouldn't attempt to load submodules
|
||||||
|
if [ ! -e ${CFG_SRC_DIR}.git ]
|
||||||
|
then
|
||||||
|
msg "git: no git directory. disabling submodules"
|
||||||
|
CFG_DISABLE_MANAGE_SUBMODULES=1
|
||||||
|
fi
|
||||||
|
|
||||||
# Have to be in the top of src directory for this
|
# Have to be in the top of src directory for this
|
||||||
cd ${CFG_SRC_DIR}
|
cd ${CFG_SRC_DIR}
|
||||||
|
|
||||||
|
@ -575,6 +583,12 @@ putvar CFG_TARGET_TRIPLES
|
||||||
putvar CFG_C_COMPILER
|
putvar CFG_C_COMPILER
|
||||||
putvar CFG_PREFIX
|
putvar CFG_PREFIX
|
||||||
|
|
||||||
|
# Setting this again because it may have been changed
|
||||||
|
if [ $CFG_DISABLE_MANAGE_SUBMODULES ]
|
||||||
|
then
|
||||||
|
putvar CFG_DISABLE_MANAGE_SUBMODULES
|
||||||
|
fi
|
||||||
|
|
||||||
if head -n 1 ${CFG_SRC_DIR}src/snapshots.txt | grep -q '^T'
|
if head -n 1 ${CFG_SRC_DIR}src/snapshots.txt | grep -q '^T'
|
||||||
then
|
then
|
||||||
CFG_IN_TRANSITION=1
|
CFG_IN_TRANSITION=1
|
||||||
|
|
Loading…
Add table
Reference in a new issue