blob: 81216559fd81462fc7e866c5430426929326bff7 [file] [log] [blame]
Wind Yuan75564b12015-01-15 06:51:15 -05001#!/bin/sh
Wind Yuanc0dba6e2015-04-28 15:19:14 +08002
Wind Yuan4a86c642017-08-23 16:19:28 +08003pre_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
Wind Yuanc0dba6e2015-04-28 15:19:14 +080010
Wind Yuan5d76a8f2015-01-15 07:34:28 -050011echo "git submodule update"
12git submodule sync
13git submodule init
14git submodule update
15
Wind Yuan75564b12015-01-15 06:51:15 -050016echo "Generating configure files"
17autoreconf -i
18# Run twice to get around a "ltmain.sh" bug
19autoreconf --install --force
Yinhang Liu72ca7c72017-02-21 18:38:09 +080020
21srcdir=`dirname "$0"`
22test -z "$srcdir" && srcdir=.
23
24if test -z "$NOCONFIGURE"; then
25 $srcdir/configure "$@"
26fi