Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 1 | #!/bin/sh |
Wind Yuan | c0dba6e | 2015-04-28 15:19:14 +0800 | [diff] [blame] | 2 | |
Wind Yuan | 4a86c64 | 2017-08-23 16:19:28 +0800 | [diff] [blame] | 3 | pre_commit_hook=".git/hooks/pre-commit" |
| 4 | if test ! -L $pre_commit_hook; |
| 5 | then |
| 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" |
| 9 | fi |
Wind Yuan | c0dba6e | 2015-04-28 15:19:14 +0800 | [diff] [blame] | 10 | |
Wind Yuan | 5d76a8f | 2015-01-15 07:34:28 -0500 | [diff] [blame] | 11 | echo "git submodule update" |
| 12 | git submodule sync |
| 13 | git submodule init |
| 14 | git submodule update |
| 15 | |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 16 | echo "Generating configure files" |
| 17 | autoreconf -i |
| 18 | # Run twice to get around a "ltmain.sh" bug |
| 19 | autoreconf --install --force |
Yinhang Liu | 72ca7c7 | 2017-02-21 18:38:09 +0800 | [diff] [blame] | 20 | |
| 21 | srcdir=`dirname "$0"` |
| 22 | test -z "$srcdir" && srcdir=. |
| 23 | |
| 24 | if test -z "$NOCONFIGURE"; then |
| 25 | $srcdir/configure "$@" |
| 26 | fi |