diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-04-06 12:39:43 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-04-06 12:39:43 +0000 |
commit | d0ca70d74507a8052a24df49ff6bbc7766e8c551 (patch) | |
tree | 1bce92a947efcf57c9ac44c468c864e2cdec19c2 /lib/xcb-util-keysyms/autogen.sh | |
parent | d6706efe71df6e98cc64698198e1696b88a84a89 (diff) |
Update to xcb-util-keysyms 0.4.0
Diffstat (limited to 'lib/xcb-util-keysyms/autogen.sh')
-rw-r--r-- | lib/xcb-util-keysyms/autogen.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/xcb-util-keysyms/autogen.sh b/lib/xcb-util-keysyms/autogen.sh index 904cd6746..afe529980 100644 --- a/lib/xcb-util-keysyms/autogen.sh +++ b/lib/xcb-util-keysyms/autogen.sh @@ -6,6 +6,21 @@ test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd $srcdir +# If this is a git checkout, verify that the submodules are initialized, +# otherwise autotools will just fail with an unhelpful error message. +if [ -d ".git" ] && [ -r ".gitmodules" ] +then + # If git is not in PATH, this will not return 0, thus not keeping us + # from building. Since the message is worthless when git is not + # installed, this is what we want. + if git submodule status 2>/dev/null | grep -q '^-' + then + echo "You have uninitialized git submodules." >&2 + echo "Please run: git submodule update --init" >&2 + exit 1 + fi +fi + autoreconf -v --install || exit 1 cd $ORIGDIR || exit $? |