| # ----------------------------------------------------------------------------- |
| # Validates that no pom versions contain SNAPSHOT. |
| # ----------------------------------------------------------------------------- |
| [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| trap "rm -f $aux 2>/dev/null" EXIT |
| egrep -v -f $ONOS_ROOT/tools/build/onos-validate-change-version.excludes | \ |
| xargs grep SNAPSHOT >$aux |
| # FIXME: deal properly with files with white-space in them |
| echo "There are files containing SNAPSHOT references:" |