Skip to content

Commit

Permalink
make bootstrap more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
simsong committed Jan 28, 2024
1 parent 1cde4d5 commit 9bdb85b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
#!/bin/sh
# Make sure it was checked out with git clone --recursive ...
# If not, update the submodules

mkdir -p build-aux

for sub in be20_api be20_api/dfxml_cpp
# Make sure it was checked out with git clone --recursive ...
# If not, try to fix it. dfxml_schema is there twice to verify that the checkout worked

for sub in dfxml_schema dfxml_schema src/be20_api src/be20_api/dfxml_cpp src/be20_api/utfcpp src/be20_api/utfcpp/extern/ftest
do
if [ ! -r src/$sub/.git ] ; then
if [ ! -r $sub/.git ] ; then
echo submodule $sub is not present.
echo 'When you did your original "git pull", did you remember to include the --recursive flag?'
exit 1
echo 'When you did your original "git pull", you likely did not include the --recursive flag.'
echo 'Attempting to fix...'
git submodule init
git submodule update
git submodule foreach --recursive 'git submodule init;git submodule update'
fi
done

Expand Down

0 comments on commit 9bdb85b

Please sign in to comment.