Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add extra help #455

Merged
merged 3 commits into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,14 +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
echo submodule $sub is not present.
exit 1
if [ ! -r $sub/.git ] ; then
echo submodule $sub is not present.
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
Loading