autogen.sh 371 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. if command -v autoreconf; then
  3. opt="-i -f -W all,error"
  4. for i in "$@"; do
  5. case "$i" in
  6. -v)
  7. opt="${opt} -v"
  8. ;;
  9. esac
  10. done
  11. # shellcheck disable=SC2086
  12. exec autoreconf $opt
  13. fi
  14. set -e
  15. # Run this to generate all the initial makefiles, etc.
  16. aclocal -I m4 && \
  17. autoheader && \
  18. autoconf && \
  19. automake --add-missing --copy