Home | History | Annotate | Download | only in libxcam
      1 #!/bin/sh
      2 
      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
     10 
     11 echo "git submodule update"
     12 git submodule sync
     13 git submodule init
     14 git submodule update
     15 
     16 echo "Generating configure files"
     17 autoreconf -i
     18 # Run twice to get around a "ltmain.sh" bug
     19 autoreconf --install --force
     20 
     21 srcdir=`dirname "$0"`
     22 test -z "$srcdir" && srcdir=.
     23 
     24 if test -z "$NOCONFIGURE"; then
     25     $srcdir/configure "$@"
     26 fi
     27