mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
prepare.sh:
Don't pass --remote to the 'git submodule update'.
We want the boehm_gc submodule to be checked out at the commit
recorded in the mercury repository, not automatically update to the
latest commit on the branch listed in .gitmodules. Similarly for
libatomic_ops within the boehm_gc submodule.
Fix help message.
21 lines
608 B
Bash
Executable File
21 lines
608 B
Bash
Executable File
#!/bin/sh
|
|
# This script should be run in a fresh git checkout in order to initialise
|
|
# the necessary git submodules and produce the configure script.
|
|
set -e
|
|
|
|
if [ ! -e boehm_gc/.git ]; then
|
|
echo "Setting up submodules"
|
|
if git submodule --quiet init; then
|
|
git submodule update --init --recursive
|
|
else
|
|
echo "There was a problem configuring the submodules."
|
|
echo "If the repositories could not be found then edit .gitmodules"
|
|
echo "then run: git submodule update --recursive"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "Setting up autotools"
|
|
aclocal -I m4
|
|
autoconf -Wno-obsolete
|