buildconf 773 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. eval `grep '^PHP_EXTRA_VERSION=' configure.ac`
  3. case "$PHP_EXTRA_VERSION" in
  4. *-dev)
  5. dev=1
  6. ;;
  7. *)
  8. dev=0
  9. ;;
  10. esac
  11. devok=0
  12. debug=no
  13. while test $# -gt 0; do
  14. if test "$1" = "--force"; then
  15. devok=1
  16. echo "Forcing buildconf"
  17. fi
  18. if test "$1" = "--debug"; then
  19. debug=yes
  20. fi
  21. shift
  22. done
  23. if test "$dev" = "0" -a "$devok" = "0"; then
  24. echo "You should not run buildconf in a release package." >&2
  25. echo "use buildconf --force to override this check." >&2
  26. exit 1
  27. fi
  28. if test "$devok" = "1"; then
  29. echo "Removing configure caches"
  30. rm -rf autom4te.cache config.cache
  31. fi
  32. rm -f generated_lists
  33. if test "$debug" = "yes"; then
  34. ${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
  35. else
  36. ${MAKE:-make} -s -f build/build.mk
  37. fi