autogen.sh 368 B

1234567891011121314151617181920212223
  1. #!/bin/sh -e
  2. bs_dir="$(dirname "$0")"
  3. if test -z "$NOSUBMODULES" ; then
  4. echo 'Getting submodules...'
  5. (
  6. cd "${bs_dir}"
  7. git submodule update --init
  8. )
  9. fi
  10. echo 'Running autoreconf -if...'
  11. (
  12. cd "${bs_dir}"
  13. rm -rf autom4te.cache
  14. rm -f aclocal.m4 ltmain.sh
  15. autoreconf -if
  16. )
  17. if test -z "$NOCONFIGURE" ; then
  18. echo 'Configuring...'
  19. "${bs_dir}"/configure "$@"
  20. fi