#!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################

######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change of this file will not
# trigger a rebuild.
# E.g: version, builds, deps, auxdata, paths, builds of other packages
#
######################################################################

setCppcheckTriggerVars() {
  CPPCHECK_BLDRVERSION_STD=${CPPCHECK_BLDRVERSION_STD:-"1.68"}
  CPPCHECK_BLDRVERSION_EXP=${CPPCHECK_BLDRVERSION_EXP:-"1.69"}
  if ! test "$CPPCHECK_BUILDS" = NONE; then
    if ! [[ `uname` =~ CYGWIN ]]; then
      if test -n "$GCC_MAJMIN"; then
        if test $GCC_MAJOR -lt 4 -o $GCC_MAJOR = 4 -a $GCC_MINOR -lt 3; then
          techo "WARNING: [$FUNCNAME] gcc version ($GCC_MAJMIN) insufficient to build cppcheck."
        else
          CPPCHECK_BUILDS=${CPPCHECK_BUILDS:-"ser"}
        fi
      else
        CPPCHECK_BUILDS=${CPPCHECK_BUILDS:-"ser"}
      fi
    fi
  fi
  CPPCHECK_DEPS=pcre
}
setCppcheckTriggerVars

######################################################################
#
# Set paths and variables that change after a build
#
######################################################################

findCppcheck() {
  :
}


#!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################

######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change of this file will not
# trigger a rebuild.
# E.g: version, builds, deps, auxdata, paths, builds of other packages
#
######################################################################

setCppcheckTriggerVars() {
  CPPCHECK_BLDRVERSION_STD=${CPPCHECK_BLDRVERSION_STD:-"1.68"}
  CPPCHECK_BLDRVERSION_EXP=${CPPCHECK_BLDRVERSION_EXP:-"1.71"}
  if ! test "$CPPCHECK_BUILDS" = NONE; then
    if ! [[ `uname` =~ CYGWIN ]]; then
      if test -n "$GCC_MAJMIN"; then
        if test $GCC_MAJOR -lt 4 -o $GCC_MAJOR = 4 -a $GCC_MINOR -lt 3; then
          techo "WARNING: [$FUNCNAME] gcc version ($GCC_MAJMIN) insufficient to build cppcheck."
        else
          CPPCHECK_BUILDS=${CPPCHECK_BUILDS:-"ser"}
        fi
      else
        CPPCHECK_BUILDS=${CPPCHECK_BUILDS:-"ser"}
      fi
    fi
  fi
  CPPCHECK_DEPS=pcre
}
setCppcheckTriggerVars

######################################################################
#
# Set paths and variables that change after a build
#
######################################################################

findCppcheck() {
  :
}


Update cppcheck for experimental builds.
Update cppcheck for experimental builds.

git-svn-id: 06aac1f7aa6783202dd435920b98a457d633d0b0@2880 a9e16012-fd73-49ee-95cb-036de7809213
