autogen.sh 446 B

123456789101112131415161718192021
  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 ${AC_FLAGS}
  18. )