Thomas Vachuska | f765933 | 2016-03-02 00:36:55 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Validates that no pom versions contain SNAPSHOT. |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
| 6 | [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| 7 | |
| 8 | aux=/tmp/pom-$$.log |
| 9 | trap "rm -f $aux 2>/dev/null" EXIT |
| 10 | |
| 11 | grep -r SNAPSHOT . | \ |
| 12 | grep -v -f $(dirname $0)/onos-validate-change-version.excludes > $aux |
| 13 | |
| 14 | [ ! -s $aux ] && echo "There are files containing SNAPSHOT references:" && \ |
| 15 | cat $aux && exit 1 |
| 16 | exit 0 |