Annotation of embedaddon/php/buildconf, revision 1.1.1.2

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>