• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3pre_commit_hook=".git/hooks/pre-commit"
4if test ! -L $pre_commit_hook;
5then
6    rm -rf $pre_commit_hook
7    ln -s ../../tools/pre-commit-code-style.sh $pre_commit_hook
8    echo "link $pre_commit_hook to code style check"
9fi
10
11echo "git submodule update"
12git submodule sync
13git submodule init
14git submodule update
15
16echo "Generating configure files"
17autoreconf -i
18# Run twice to get around a "ltmain.sh" bug
19autoreconf --install --force
20
21srcdir=`dirname "$0"`
22test -z "$srcdir" && srcdir=.
23
24if test -z "$NOCONFIGURE"; then
25    $srcdir/configure "$@"
26fi
27