autogen.sh 522 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh -e
  2. # Written by Luke Dashjr in 2012
  3. # This program is released under the terms of the Creative Commons "CC0 1.0 Universal" license and/or copyright waiver.
  4. bs_dir="$(dirname "$0")"
  5. if test -z "$NOSUBMODULES" ; then
  6. echo 'Getting submodules...'
  7. (
  8. cd "${bs_dir}"
  9. git submodule update --init
  10. )
  11. fi
  12. echo 'Running autoreconf -if...'
  13. (
  14. cd "${bs_dir}"
  15. rm -rf autom4te.cache
  16. rm -f aclocal.m4 ltmain.sh
  17. autoreconf -if
  18. )
  19. if test -z "$NOCONFIGURE" ; then
  20. echo 'Configuring...'
  21. "${bs_dir}"/configure "$@"
  22. fi